|
4 | 4 | <span tal:replace="config/TRACKER_NAME" />: |
5 | 5 | <span tal:condition="context/id" |
6 | 6 | tal:replace="string:Issue ${context/id}: ${context/title}" /> |
7 | | -<tal:x tal:condition="not:context/id">New Issue</tal:x> |
8 | 7 | </title> |
9 | 8 | <span metal:fill-slot="body_title" tal:omit-tag="python:1"> |
| 9 | + <tal:x tal:condition="not:context/id">New</tal:x> |
10 | 10 | Issue<span tal:replace="context/id" /> |
11 | 11 | <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> |
12 | 12 | </span> |
13 | 13 |
|
14 | 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 | 16 | <form method="POST" name="itemSynopsis" onSubmit="return submit_once()" |
21 | | - enctype="multipart/form-data" tal:condition="context/is_edit_ok" |
22 | | - tal:attributes="action context/designator"> |
| 17 | + enctype="multipart/form-data" tal:attributes="action context/designator"> |
23 | 18 |
|
24 | 19 | <table class="form"> |
25 | 20 | <tr> |
|
62 | 57 | </td> |
63 | 58 | </tr> |
64 | 59 |
|
65 | | -<tr> |
| 60 | +<tr tal:condition="context/is_edit_ok"> |
66 | 61 | <th>Change Note</th> |
67 | 62 | <td colspan=3> |
68 | 63 | <textarea tal:content="request/form/@note/value | default" |
69 | 64 | name="@note" wrap="hard" rows="5" cols="80"></textarea> |
70 | 65 | </td> |
71 | 66 | </tr> |
72 | 67 |
|
73 | | -<tr> |
| 68 | +<tr tal:condition="context/is_edit_ok"> |
74 | 69 | <th>File</th> |
75 | 70 | <td colspan=3><input type="file" name="@file" size="40"></td> |
76 | 71 | </tr> |
77 | 72 |
|
78 | | -<tr> |
| 73 | +<tr tal:condition="context/is_edit_ok"> |
79 | 74 | <td> |
80 | 75 | |
81 | 76 | <input type="hidden" name="@template" value="item"> |
|
85 | 80 | submit button will go here |
86 | 81 | </td> |
87 | 82 | </tr> |
| 83 | + |
88 | 84 | </table> |
| 85 | + |
89 | 86 | </form> |
90 | 87 |
|
91 | 88 | <table class="form" tal:condition="not:context/id"> |
|
96 | 93 | </tr> |
97 | 94 | </table> |
98 | 95 |
|
99 | | -<table class="form" tal:condition="context/is_only_view_ok"> |
100 | | -<tr> |
101 | | - <th>Title</th><td colspan=3 tal:content="context/title">title</td> |
102 | | -</tr> |
103 | | - |
104 | | -<tr> |
105 | | - <th>Priority</th><td tal:content="context/priority">priority</td> |
106 | | - <th>Status</th><td tal:content="context/status">status</td> |
107 | | -</tr> |
108 | | - |
109 | | -<tr> |
110 | | - <th>Superseder</th> |
111 | | - <td> |
112 | | - <span tal:condition="context/superseder" tal:repeat="sup context/superseder"> |
113 | | - <br>View: <a tal:attributes="href string:issue${sup/id}" |
114 | | - tal:content="sup/id"></a> |
115 | | - </span> |
116 | | - </td> |
117 | | - <th>Nosy List</th><td><span tal:replace="context/nosy" /></td> |
118 | | -</tr> |
119 | | - |
120 | | -<tr> |
121 | | - <th>Assigned To</th><td tal:content="context/assignedto"></td> |
122 | | - <th>Topics</th><td tal:content="structure context/topic"></td> |
123 | | -</tr> |
124 | | -</table> |
125 | | - |
126 | | -<tal:block tal:condition="python:context.id and context.is_view_ok()"> |
127 | | - |
128 | | - <p tal:content="structure string:Created on |
| 96 | +<p tal:condition="context/id" tal:content="structure string:Created on |
129 | 97 | <b>${context/creation}</b> by <b>${context/creator}</b>, last |
130 | 98 | 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> |
| 99 | +</p> |
| 100 | + |
| 101 | +<table class="messages" tal:condition="context/messages"> |
| 102 | + <tr><th colspan="4" class="header">Messages</th></tr> |
| 103 | + <tal:block tal:repeat="msg context/messages/reverse"> |
| 104 | + <tr> |
| 105 | + <th><a tal:attributes="href string:msg${msg/id}" |
| 106 | + tal:content="string:msg${msg/id}"></a></th> |
| 107 | + <th tal:content="string:Author: ${msg/author}">author</th> |
| 108 | + <th tal:content="string:Date: ${msg/date}">date</th> |
| 109 | + <th> |
| 110 | + <a tal:condition="context/is_edit_ok" |
| 111 | + tal:attributes="href string:issue${context/id}?@remove@messages=${msg/id}&@action=edit">remove</a> |
| 112 | + </th> |
| 113 | + </tr> |
| 114 | + <tr> |
| 115 | + <td colspan="4" class="content"> |
| 116 | + <pre tal:content="structure msg/content/hyperlinked">content</pre> |
165 | 117 | </td> |
166 | 118 | </tr> |
167 | | - </table> |
| 119 | + </tal:block> |
| 120 | +</table> |
168 | 121 |
|
169 | | - <tal:block tal:replace="structure context/history" /> |
| 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> |
170 | 136 |
|
171 | | -</tal:block> |
| 137 | +<tal:block tal:condition="context/id" tal:replace="structure context/history" /> |
172 | 138 |
|
173 | 139 | </td> |
174 | 140 |
|
|
0 commit comments