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 context/designator">
26 <table class="form">
27 <tr>
28 <th class="required">Title</th>
29 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
30 </tr>
32 <tr>
33 <th class="required">Priority</th>
34 <td tal:content="structure context/priority/menu">priority</td>
35 <th>Status</th>
36 <td tal:content="structure context/status/menu">status</td>
37 </tr>
39 <tr>
40 <th>Superseder</th>
41 <td>
42 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
43 <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
44 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
45 <br>View: <a tal:attributes="href string:issue${sup/id}"
46 tal:content="sup/id"></a>
47 </span>
48 </td>
49 <th>Nosy List</th>
50 <td>
51 <span tal:replace="structure context/nosy/field" />
52 <span tal:replace="structure
53 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
54 </td>
55 </tr>
57 <tr>
58 <th>Assigned To</th>
59 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
60 <th>Topics</th>
61 <td>
62 <span tal:replace="structure context/topic/field" />
63 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
64 </td>
65 </tr>
67 <tr>
68 <th>Change Note</th>
69 <td colspan=3>
70 <textarea tal:content="request/form/:note/value | default"
71 name=":note" wrap="hard" rows="5" cols="80"></textarea>
72 </td>
73 </tr>
75 <tr>
76 <th>File</th>
77 <td colspan=3><input type="file" name=":file" size="40"></td>
78 </tr>
80 <tr>
81 <td>
82
83 <input type="hidden" name=":template" value="item">
84 <input type="hidden" name=":required" value="title,priority">
85 </td>
86 <td colspan=3 tal:content="structure context/submit">
87 submit button will go here
88 </td>
89 </tr>
90 </table>
91 </form>
93 <table class="form" tal:condition="not:context/id">
94 <tr>
95 <td>Note: </td>
96 <th class="required">highlighted</th>
97 <td> fields are required.</td>
98 </tr>
99 </table>
101 <table class="form" tal:condition="context/is_only_view_ok">
102 <tr>
103 <th>Title</th><td colspan=3 tal:content="context/title">title</td>
104 </tr>
106 <tr>
107 <th>Priority</th><td tal:content="context/priority">priority</td>
108 <th>Status</th><td tal:content="context/status">status</td>
109 </tr>
111 <tr>
112 <th>Superseder</th>
113 <td>
114 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
115 <br>View: <a tal:attributes="href string:issue${sup/id}"
116 tal:content="sup/id"></a>
117 </span>
118 </td>
119 <th>Nosy List</th><td><span tal:replace="context/nosy" /></td>
120 </tr>
122 <tr>
123 <th>Assigned To</th><td tal:content="context/assignedto"></td>
124 <th>Topics</th><td tal:content="structure context/topic"></td>
125 </tr>
126 </table>
128 <tal:block tal:condition="python:context.id and context.is_view_ok()">
130 <p tal:content="structure string:Created on
131 <b>${context/creation}</b> by <b>${context/creator}</b>, last
132 changed <b>${context/activity}</b>.">activity info
133 </p>
135 <table class="messages" tal:condition="context/messages">
136 <tr><th colspan="4" class="header">Messages</th></tr>
137 <tal:block tal:repeat="msg context/messages/reverse">
138 <tr>
139 <th><a tal:attributes="href string:msg${msg/id}"
140 tal:content="string:msg${msg/id}"></a></th>
141 <th tal:content="string:Author: ${msg/author}">author</th>
142 <th tal:content="string:Date: ${msg/date}">date</th>
143 <th>
144 <a tal:condition="context/is_edit_ok"
145 tal:attributes="href string:issue${context/id}?:remove:messages=${msg/id}&:action=edit">remove</a>
146 </th>
147 </tr>
148 <tr>
149 <td colspan="4" class="content">
150 <pre tal:content="structure msg/content/hyperlinked">content</pre>
151 </td>
152 </tr>
153 </tal:block>
154 </table>
156 <table class="files" tal:condition="context/files">
157 <tr><th colspan="2" class="header">Files</th></tr>
158 <tr><th>File name</th><th>Uploaded</th></tr>
159 <tr tal:repeat="file context/files">
160 <td>
161 <a tal:attributes="href string:file${file/id}/${file/name}"
162 tal:content="file/name">dld link</a>
163 </td>
164 <td>
165 <span tal:content="file/creator">creator's name</span>,
166 <span tal:content="file/creation">creation date</span>
167 </td>
168 </tr>
169 </table>
171 <tal:block tal:replace="structure context/history" />
173 </tal:block>
175 </td>
177 </tal:block>