1 <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title">
4 <tal:block condition="context/id" i18n:translate=""
5 >Issue <tal:x tal:content="context/id" i18n:name="id"
6 />: <tal:x content="context/title" i18n:name="title"
7 /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker"
8 /></tal:block>
9 <tal:block condition="not:context/id" i18n:translate=""
10 >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
11 /></tal:block>
12 </title>
13 <tal:block metal:fill-slot="body_title">
14 <span tal:condition="python: not (context.id or context.is_edit_ok())"
15 tal:omit-tag="python:1" i18n:translate="">New Issue</span>
16 <span tal:condition="python: not context.id and context.is_edit_ok()"
17 tal:omit-tag="python:1" i18n:translate="">New Issue Editing</span>
18 <span tal:condition="python: context.id and not context.is_edit_ok()"
19 tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
20 replace="context/id" i18n:name="id" /></span>
21 <span tal:condition="python: context.id and context.is_edit_ok()"
22 tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
23 replace="context/id" i18n:name="id" /> Editing</span>
24 </tal:block>
26 <td class="content" metal:fill-slot="content">
28 <p tal:condition="python:not (context.is_view_ok()
29 or request.user.hasRole('Anonymous'))" i18n:translate="">
30 You are not allowed to view this page.</p>
32 <p tal:condition="python:not context.is_view_ok()
33 and request.user.hasRole('Anonymous')" i18n:translate="">
34 Please login with your username and password.</p>
36 <div tal:condition="context/is_view_ok">
38 <form method="POST" name="itemSynopsis"
39 onSubmit="return submit_once()" enctype="multipart/form-data"
40 tal:attributes="action context/designator">
42 <table class="form">
43 <tr>
44 <th class="required" i18n:translate="">Title</th>
45 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
46 </tr>
48 <tr>
49 <th class="required" i18n:translate="">Priority</th>
50 <td tal:content="structure context/priority/menu">priority</td>
51 <th i18n:translate="">Status</th>
52 <td tal:content="structure context/status/menu">status</td>
53 </tr>
55 <tr>
56 <th i18n:translate="">Superseder</th>
57 <td>
58 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
59 <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
60 <span tal:condition="context/superseder">
61 <br><span i18n:translate="">View:</span>
62 <a tal:repeat="sup context/superseder"
63 tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)"
64 tal:attributes="href string:issue${sup/id}"></a>
65 </span>
66 </td>
67 <th i18n:translate="">Nosy List</th>
68 <td>
69 <span tal:replace="structure context/nosy/field" />
70 <span tal:condition="context/is_edit_ok" tal:replace="structure
71 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
72 </td>
73 </tr>
75 <tr>
76 <th i18n:translate="">Assigned To</th>
77 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
78 <th i18n:translate="">Keywords</th>
79 <td>
80 <span tal:replace="structure context/keyword/field" />
81 <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyword.classhelp(property='keyword')" />
82 </td>
83 </tr>
85 <tr tal:condition="context/is_edit_ok">
86 <th i18n:translate="">Change Note</th>
87 <td colspan=3>
88 <textarea tal:content="request/form/@note/value | default"
89 name="@note" wrap="hard" rows="5" cols="80"></textarea>
90 </td>
91 </tr>
93 <tr tal:condition="context/is_edit_ok">
94 <th i18n:translate="">File</th>
95 <td colspan=3><input type="file" name="@file" size="40"></td>
96 </tr>
98 <tr tal:condition="context/is_edit_ok">
99 <td>
100
101 <input type="hidden" name="@template" value="item">
102 <input type="hidden" name="@required" value="title,priority">
103 </td>
104 <td colspan=3>
105 <span tal:replace="structure context/submit">submit button</span>
106 <a tal:condition="context/id" tal:attributes="href context/copy_url"
107 i18n:translate="">Make a copy</a>
108 </td>
109 </tr>
111 </table>
112 </form>
114 <tal:block tal:condition="not:context/id" i18n:translate="">
115 <table class="form">
116 <tr>
117 <td>Note: </td>
118 <th class="required">highlighted</th>
119 <td> fields are required.</td>
120 </tr>
121 </table>
122 </tal:block>
124 <p tal:condition="context/id" i18n:translate="">
125 Created on <b tal:content="context/creation" i18n:name="creation" />
126 by <b tal:content="context/creator" i18n:name="creator" />,
127 last changed <b content="context/activity" i18n:name="activity" />
128 by <b tal:content="context/actor" i18n:name="actor" />.
129 </p>
131 <table class="files" tal:condition="context/files">
132 <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
133 <tr>
134 <th i18n:translate="">File name</th>
135 <th i18n:translate="">Uploaded</th>
136 <th i18n:translate="">Type</th>
137 <th i18n:translate="">Edit</th>
138 <th i18n:translate="">Remove</th>
139 </tr>
140 <tr tal:repeat="file context/files">
141 <td>
142 <a tal:attributes="href file/download_url"
143 tal:content="file/name">dld link</a>
144 </td>
145 <td>
146 <span tal:content="file/creator">creator's name</span>,
147 <span tal:content="file/creation">creation date</span>
148 </td>
149 <td tal:content="file/type" />
150 <td><a tal:condition="file/is_edit_ok"
151 tal:attributes="href string:file${file/id}">edit</a>
152 </td>
153 <td>
154 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
155 tal:attributes="action string:issue${context/id}">
156 <input type="hidden" name="@remove@files" tal:attributes="value file/id">
157 <input type="hidden" name="@action" value="edit">
158 <input type="submit" value="remove" i18n:attributes="value">
159 </form>
160 </td>
161 </tr>
162 </table>
164 <table class="messages" tal:condition="context/messages">
165 <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
166 <tal:block tal:repeat="msg context/messages/reverse">
167 <tr>
168 <th><a tal:attributes="href string:msg${msg/id}"
169 i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></th>
170 <th i18n:translate="">Author: <tal:x replace="msg/author"
171 i18n:name="author" /></th>
172 <th i18n:translate="">Date: <tal:x replace="msg/date"
173 i18n:name="date" /></th>
174 <th>
175 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
176 tal:attributes="action string:issue${context/id}">
177 <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
178 <input type="hidden" name="@action" value="edit">
179 <input type="submit" value="remove" i18n:attributes="value">
180 </form>
181 </th>
182 </tr>
183 <tr>
184 <td colspan="4" class="content">
185 <pre tal:content="structure msg/content/hyperlinked">content</pre>
186 </td>
187 </tr>
188 </tal:block>
189 </table>
191 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
193 </div>
195 </td>
197 </tal:block>