Code

7423a8d908c691661a42e03db9fc5a6fc5bff5a9
[roundup.git] / templates / classic / html / issue.item.html
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 </title> 
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" />
11    <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
12  </span>
14 <td class="content" metal:fill-slot="content">
16 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
17       enctype="multipart/form-data" tal:attributes="action context/designator">
19 <table class="form">
20 <tr>
21  <th class="required">Title</th>
22  <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
23 </tr>
25 <tr>
26  <th class="required">Priority</th>
27  <td tal:content="structure context/priority/menu">priority</td>
28  <th>Status</th>
29  <td tal:content="structure context/status/menu">status</td>
30 </tr>
32 <tr>
33  <th>Superseder</th>
34  <td>
35   <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
36   <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
37   <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
38    <br>View: <a tal:attributes="href string:issue${sup/id}"
39                 tal:content="sup/id"></a>
40   </span>
41  </td>
42  <th>Nosy List</th>
43  <td>
44   <span tal:replace="structure context/nosy/field" />
45   <span tal:replace="structure
46 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
47  </td>
48 </tr>
50 <tr>
51  <th>Assigned To</th>
52  <td tal:content="structure context/assignedto/menu">assignedto menu</td>
53  <th>Topics</th>
54  <td>
55   <span tal:replace="structure context/topic/field" />
56   <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
57  </td>
58 </tr>
60 <tr tal:condition="context/is_edit_ok">
61  <th>Change Note</th>
62  <td colspan=3>
63   <textarea tal:content="request/form/@note/value | default"
64             name="@note" wrap="hard" rows="5" cols="80"></textarea>
65  </td>
66 </tr>
68 <tr tal:condition="context/is_edit_ok">
69  <th>File</th>
70  <td colspan=3><input type="file" name="@file" size="40"></td>
71 </tr>
73 <tr tal:condition="context/is_edit_ok">
74  <td>
75   &nbsp;
76   <input type="hidden" name="@template" value="item">
77   <input type="hidden" name="@required" value="title,priority">
78  </td>
79  <td colspan=3 tal:content="structure context/submit">
80   submit button will go here
81  </td>
82 </tr>
84 </table>
86 </form>
88 <table class="form" tal:condition="not:context/id">
89 <tr>
90  <td>Note:&nbsp;</td>
91  <th class="required">highlighted</th>
92  <td>&nbsp;fields are required.</td>
93 </tr>
94 </table>
96 <p tal:condition="context/id" tal:content="structure string:Created on
97   <b>${context/creation}</b> by <b>${context/creator}</b>, last
98   changed <b>${context/activity}</b>.">activity info
99 </p>
101 <table class="files" tal:condition="context/files">
102  <tr><th colspan="4" class="header">Files</th></tr>
103  <tr><th>File name</th><th>Uploaded</th><th>Type</th><th>Edit</th></tr>
104  <tr tal:repeat="file context/files">
105   <td>
106    <a tal:attributes="href string:file${file/id}/${file/name}"
107       tal:content="file/name">dld link</a>
108   </td>
109   <td>
110    <span tal:content="file/creator">creator's name</span>,
111    <span tal:content="file/creation">creation date</span>
112   </td>
113   <td tal:content="file/type" />
114   <td><a tal:condition="file/is_edit_ok"
115           tal:attributes="href string:file${file/id}">edit</a>
116   </td>
117  </tr>
118 </table>
120 <table class="messages" tal:condition="context/messages">
121  <tr><th colspan="4" class="header">Messages</th></tr>
122  <tal:block tal:repeat="msg context/messages/reverse">
123   <tr>
124    <th><a tal:attributes="href string:msg${msg/id}"
125           tal:content="string:msg${msg/id} (view)"></a></th>
126    <th tal:content="string:Author: ${msg/author}">author</th>
127    <th tal:content="string:Date: ${msg/date}">date</th>
128    <th>
129     <form style="padding:0" tal:condition="context/is_edit_ok"
130           tal:attributes="action string:issue${context/id}">
131      <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
132      <input type="hidden" name="@action" value="edit">
133      <input type="submit" value="remove">
134     </form>
135    </th>
136   </tr>
137   <tr>
138    <td colspan="4" class="content">
139     <pre tal:content="structure msg/content/hyperlinked">content</pre>
140    </td>
141   </tr>
142  </tal:block>
143 </table>
145 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
147 </td>
149 </tal:block>