comparison templates/classic/html/issue.item.html @ 1978:eb043e7d0899

changed template to remove duplicate display table... ...using built-in permission checks now fixed permissions settings for anonymous to make view work again for them
author Richard Jones <richard@users.sourceforge.net>
date Mon, 19 Jan 2004 23:57:47 +0000
parents 3a4abf6d48c2
children 95623e250b01
comparison
equal deleted inserted replaced
1977:f96592a7c357 1978:eb043e7d0899
2 <tal:block metal:use-macro="templates/page/macros/icing"> 2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title"> 3 <title metal:fill-slot="head_title">
4 <span tal:replace="config/TRACKER_NAME" />: 4 <span tal:replace="config/TRACKER_NAME" />:
5 <span tal:condition="context/id" 5 <span tal:condition="context/id"
6 tal:replace="string:Issue ${context/id}: ${context/title}" /> 6 tal:replace="string:Issue ${context/id}: ${context/title}" />
7 <tal:x tal:condition="not:context/id">New Issue</tal:x>
8 </title> 7 </title>
9 <span metal:fill-slot="body_title" tal:omit-tag="python:1"> 8 <span metal:fill-slot="body_title" tal:omit-tag="python:1">
9 <tal:x tal:condition="not:context/id">New</tal:x>
10 Issue<span tal:replace="context/id" /> 10 Issue<span tal:replace="context/id" />
11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> 11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
12 </span> 12 </span>
13 13
14 <td class="content" metal:fill-slot="content"> 14 <td class="content" metal:fill-slot="content">
15 15
16 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
17 You are not allowed to view this page.
18 </span>
19
20 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()" 16 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
21 enctype="multipart/form-data" tal:condition="context/is_edit_ok" 17 enctype="multipart/form-data" tal:attributes="action context/designator">
22 tal:attributes="action context/designator">
23 18
24 <table class="form"> 19 <table class="form">
25 <tr> 20 <tr>
26 <th class="required">Title</th> 21 <th class="required">Title</th>
27 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td> 22 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
60 <span tal:replace="structure context/topic/field" /> 55 <span tal:replace="structure context/topic/field" />
61 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" /> 56 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
62 </td> 57 </td>
63 </tr> 58 </tr>
64 59
65 <tr> 60 <tr tal:condition="context/is_edit_ok">
66 <th>Change Note</th> 61 <th>Change Note</th>
67 <td colspan=3> 62 <td colspan=3>
68 <textarea tal:content="request/form/@note/value | default" 63 <textarea tal:content="request/form/@note/value | default"
69 name="@note" wrap="hard" rows="5" cols="80"></textarea> 64 name="@note" wrap="hard" rows="5" cols="80"></textarea>
70 </td> 65 </td>
71 </tr> 66 </tr>
72 67
73 <tr> 68 <tr tal:condition="context/is_edit_ok">
74 <th>File</th> 69 <th>File</th>
75 <td colspan=3><input type="file" name="@file" size="40"></td> 70 <td colspan=3><input type="file" name="@file" size="40"></td>
76 </tr> 71 </tr>
77 72
78 <tr> 73 <tr tal:condition="context/is_edit_ok">
79 <td> 74 <td>
80 &nbsp; 75 &nbsp;
81 <input type="hidden" name="@template" value="item"> 76 <input type="hidden" name="@template" value="item">
82 <input type="hidden" name="@required" value="title,priority"> 77 <input type="hidden" name="@required" value="title,priority">
83 </td> 78 </td>
84 <td colspan=3 tal:content="structure context/submit"> 79 <td colspan=3 tal:content="structure context/submit">
85 submit button will go here 80 submit button will go here
86 </td> 81 </td>
87 </tr> 82 </tr>
83
88 </table> 84 </table>
85
89 </form> 86 </form>
90 87
91 <table class="form" tal:condition="not:context/id"> 88 <table class="form" tal:condition="not:context/id">
92 <tr> 89 <tr>
93 <td>Note:&nbsp;</td> 90 <td>Note:&nbsp;</td>
94 <th class="required">highlighted</th> 91 <th class="required">highlighted</th>
95 <td>&nbsp;fields are required.</td> 92 <td>&nbsp;fields are required.</td>
96 </tr> 93 </tr>
97 </table> 94 </table>
98 95
99 <table class="form" tal:condition="context/is_only_view_ok"> 96 <p tal:condition="context/id" tal:content="structure string:Created on
100 <tr> 97 <b>${context/creation}</b> by <b>${context/creator}</b>, last
101 <th>Title</th><td colspan=3 tal:content="context/title">title</td> 98 changed <b>${context/activity}</b>.">activity info
102 </tr> 99 </p>
103 100
104 <tr> 101 <table class="messages" tal:condition="context/messages">
105 <th>Priority</th><td tal:content="context/priority">priority</td> 102 <tr><th colspan="4" class="header">Messages</th></tr>
106 <th>Status</th><td tal:content="context/status">status</td> 103 <tal:block tal:repeat="msg context/messages/reverse">
107 </tr> 104 <tr>
108 105 <th><a tal:attributes="href string:msg${msg/id}"
109 <tr> 106 tal:content="string:msg${msg/id}"></a></th>
110 <th>Superseder</th> 107 <th tal:content="string:Author: ${msg/author}">author</th>
111 <td> 108 <th tal:content="string:Date: ${msg/date}">date</th>
112 <span tal:condition="context/superseder" tal:repeat="sup context/superseder"> 109 <th>
113 <br>View: <a tal:attributes="href string:issue${sup/id}" 110 <a tal:condition="context/is_edit_ok"
114 tal:content="sup/id"></a> 111 tal:attributes="href string:issue${context/id}?@remove@messages=${msg/id}&@action=edit">remove</a>
115 </span> 112 </th>
116 </td> 113 </tr>
117 <th>Nosy List</th><td><span tal:replace="context/nosy" /></td> 114 <tr>
118 </tr> 115 <td colspan="4" class="content">
119 116 <pre tal:content="structure msg/content/hyperlinked">content</pre>
120 <tr> 117 </td>
121 <th>Assigned To</th><td tal:content="context/assignedto"></td> 118 </tr>
122 <th>Topics</th><td tal:content="structure context/topic"></td> 119 </tal:block>
123 </tr>
124 </table> 120 </table>
125 121
126 <tal:block tal:condition="python:context.id and context.is_view_ok()"> 122 <table class="files" tal:condition="context/files">
123 <tr><th colspan="2" class="header">Files</th></tr>
124 <tr><th>File name</th><th>Uploaded</th></tr>
125 <tr tal:repeat="file context/files">
126 <td>
127 <a tal:attributes="href string:file${file/id}/${file/name}"
128 tal:content="file/name">dld link</a>
129 </td>
130 <td>
131 <span tal:content="file/creator">creator's name</span>,
132 <span tal:content="file/creation">creation date</span>
133 </td>
134 </tr>
135 </table>
127 136
128 <p tal:content="structure string:Created on 137 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
129 <b>${context/creation}</b> by <b>${context/creator}</b>, last
130 changed <b>${context/activity}</b>.">activity info
131 </p>
132
133 <table class="messages" tal:condition="context/messages">
134 <tr><th colspan="4" class="header">Messages</th></tr>
135 <tal:block tal:repeat="msg context/messages/reverse">
136 <tr>
137 <th><a tal:attributes="href string:msg${msg/id}"
138 tal:content="string:msg${msg/id}"></a></th>
139 <th tal:content="string:Author: ${msg/author}">author</th>
140 <th tal:content="string:Date: ${msg/date}">date</th>
141 <th>
142 <a tal:condition="context/is_edit_ok"
143 tal:attributes="href string:issue${context/id}?@remove@messages=${msg/id}&@action=edit">remove</a>
144 </th>
145 </tr>
146 <tr>
147 <td colspan="4" class="content">
148 <pre tal:content="structure msg/content/hyperlinked">content</pre>
149 </td>
150 </tr>
151 </tal:block>
152 </table>
153
154 <table class="files" tal:condition="context/files">
155 <tr><th colspan="2" class="header">Files</th></tr>
156 <tr><th>File name</th><th>Uploaded</th></tr>
157 <tr tal:repeat="file context/files">
158 <td>
159 <a tal:attributes="href string:file${file/id}/${file/name}"
160 tal:content="file/name">dld link</a>
161 </td>
162 <td>
163 <span tal:content="file/creator">creator's name</span>,
164 <span tal:content="file/creation">creation date</span>
165 </td>
166 </tr>
167 </table>
168
169 <tal:block tal:replace="structure context/history" />
170
171 </tal:block>
172 138
173 </td> 139 </td>
174 140
175 </tal:block> 141 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/