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 <span tal:replace="config/TRACKER_NAME" />:
5 <span tal:condition="context/id"
6 tal:replace="string:Issue ${context/id}: ${context/title}" />
7 <tal:x tal:condition="not:context/id">New Issue</tal:x>
8 </title>
9 <td class="page-header-top" metal:fill-slot="body_title">
10 <h2>
11 Issue<span tal:replace="context/id" />
12 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
13 </h2>
14 </td>
16 <td class="content" metal:fill-slot="content">
18 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
19 You are not allowed to view this page.
20 </span>
22 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
23 enctype="multipart/form-data" tal:condition="context/is_edit_ok"
24 tal:attributes="action string:%{context/_classname}${context/id}">
26 <input type="hidden" name=":template" value="item">
27 <input type="hidden" name=":required" value="title,priority">
29 <table class="form">
30 <tr>
31 <th class="required" nowrap>Title</th>
32 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
33 </tr>
35 <tr>
36 <th class="required" nowrap>Priority</th>
37 <td tal:content="structure context/priority/menu">priority</td>
38 <th nowrap>Status</th>
39 <td tal:content="structure context/status/menu">status</td>
40 </tr>
42 <tr>
43 <th nowrap>Superseder</th>
44 <td>
45 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
46 <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
47 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
48 <br>View: <a tal:attributes="href string:issue${sup/id}"
49 tal:content="sup/id"></a>
50 </span>
51 </td>
52 <th nowrap>Nosy List</th>
53 <td>
54 <span tal:replace="structure context/nosy/field" />
55 <span tal:replace="structure
56 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
57 </td>
58 </tr>
60 <tr>
61 <th nowrap>Assigned To</th>
62 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
63 <th nowrap>Topics</th>
64 <td>
65 <span tal:replace="structure context/topic/field" />
66 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
67 </td>
68 </tr>
70 <tr>
71 <th nowrap>Change Note</th>
72 <td colspan=3>
73 <textarea tal:content="request/form/:note/value | default"
74 name=":note" wrap="hard" rows="5" cols="80"></textarea>
75 </td>
76 </tr>
78 <tr>
79 <th nowrap>File</th>
80 <td colspan=3><input type="file" name=":file" size="40"></td>
81 </tr>
83 <tr>
84 <td> </td>
85 <td colspan=3 tal:content="structure context/submit">
86 submit button will go here
87 </td>
88 </tr>
89 </table>
90 </form>
92 <table class="form" tal:condition="not:context/id">
93 <tr>
94 <td>Note: </td>
95 <th class="required">highlighted</th>
96 <td> fields are required.</td>
97 </tr>
98 </table>
100 <table class="form" tal:condition="context/is_only_view_ok">
101 <tr>
102 <th nowrap>Title</th><td colspan=3 tal:content="context/title">title</td>
103 </tr>
105 <tr>
106 <th nowrap>Priority</th><td tal:content="context/priority">priority</td>
107 <th nowrap>Status</th><td tal:content="context/status">status</td>
108 </tr>
110 <tr>
111 <th nowrap>Superseder</th>
112 <td>
113 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
114 <br>View: <a tal:attributes="href string:issue${sup/id}"
115 tal:content="sup/id"></a>
116 </span>
117 </td>
118 <th nowrap>Nosy List</th><td><span tal:replace="context/nosy" /></td>
119 </tr>
121 <tr>
122 <th nowrap>Assigned To</th><td tal:content="context/assignedto"></td>
123 <th nowrap>Topics</th><td tal:content="structure context/topic"></td>
124 </tr>
125 </table>
127 <tal:block tal:condition="python:context.id and context.is_view_ok()">
129 <p tal:content="structure string:Created on
130 <b>${context/creation}</b> by <b>${context/creator}</b>, last
131 changed <b>${context/activity}</b>.">activity info
132 </p>
134 <table class="messages" tal:condition="context/messages">
135 <tr><th colspan="4" class="header">Messages</th></tr>
136 <tal:block tal:repeat="msg context/messages/reverse">
137 <tr>
138 <th><a tal:attributes="href string:msg${msg/id}"
139 tal:content="string:msg${msg/id}"></a></th>
140 <th tal:content="string:Author: ${msg/author}">author</th>
141 <th tal:content="string:Date: ${msg/date}">date</th>
142 <th>
143 <a tal:attributes="href string:?:remove:messages=${msg/id}&:action=edit">remove</a>
144 </th>
145 </tr>
146 <tr>
147 <td colspan="4" class="content">
148 <pre tal:content="msg/content">content</pre>
149 </td>
150 </tr>
151 </tal:block>
152 </table>
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>
169 <tal:block tal:replace="structure context/history" />
171 </tal:block>
173 </td>
175 </tal:block>