Code

moving templates around
[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 <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">
25 <input type="hidden" name=":template" value="item">
26 <input type="hidden" name=":required" value="title,priority">
28 <table class="form">
29 <tr>
30  <th class="required" nowrap>Title</th>
31  <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
32 </tr>
34 <tr>
35  <th class="required" nowrap>Priority</th>
36  <td tal:content="structure context/priority/menu">priority</td>
37  <th nowrap>Status</th>
38  <td tal:content="structure context/status/menu">status</td>
39 </tr>
41 <tr>
42  <th nowrap>Superseder</th>
43  <td>
44   <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
45   <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
46   <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
47    <br>View: <a tal:attributes="href string:issue${sup/id}"
48                 tal:content="sup/id"></a>
49   </span>
50  </td>
51  <th nowrap>Nosy List</th>
52  <td>
53   <span tal:replace="structure context/nosy/field" />
54   <span tal:replace="structure
55 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
56  </td>
57 </tr>
59 <tr>
60  <th nowrap>Assigned To</th>
61  <td tal:content="structure context/assignedto/menu">assignedto menu</td>
62  <th nowrap>Topics</th>
63  <td>
64   <span tal:replace="structure context/topic/field" />
65   <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
66  </td>
67 </tr>
69 <tr>
70  <th nowrap>Change Note</th>
71  <td colspan=3>
72   <textarea tal:content="request/form/:note/value | default"
73             name=":note" wrap="hard" rows="5" cols="80"></textarea>
74  </td>
75 </tr>
77 <tr>
78  <th nowrap>File</th>
79  <td colspan=3><input type="file" name=":file" size="40"></td>
80 </tr>
82 <tr>
83  <td>&nbsp;</td>
84  <td colspan=3 tal:content="structure context/submit">
85   submit button will go here
86  </td>
87 </tr>
88 </table>
89 </form>
91 <table class="form" tal:condition="not:context/id">
92 <tr>
93  <td>Note:&nbsp;</td>
94  <th class="required">highlighted</th>
95  <td>&nbsp;fields are required.</td>
96 </tr>
97 </table>
99 <table class="form" tal:condition="context/is_only_view_ok">
100 <tr>
101  <th nowrap>Title</th><td colspan=3 tal:content="context/title">title</td>
102 </tr>
104 <tr>
105  <th nowrap>Priority</th><td tal:content="context/priority">priority</td>
106  <th nowrap>Status</th><td tal:content="context/status">status</td>
107 </tr>
109 <tr>
110  <th nowrap>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 nowrap>Nosy List</th><td><span tal:replace="context/nosy" /></td>
118 </tr>
120 <tr>
121  <th nowrap>Assigned To</th><td tal:content="context/assignedto"></td>
122  <th nowrap>Topics</th><td tal:content="structure context/topic"></td>
123 </tr>
124 </table>
126 <tal:block tal:condition="python:context.id and context.is_view_ok()">
128  <p tal:content="structure string:Created on
129   <b>${context/creation}</b> by <b>${context/creator}</b>, last
130   changed <b>${context/activity}</b>.">activity info
131  </p>
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:attributes="href string:?:remove:messages=${msg/id}&:action=edit">remove</a>
143     </th>
144    </tr>
145    <tr>
146     <td colspan="4" class="content">
147      <pre tal:content="msg/content">content</pre>
148     </td>
149    </tr>
150   </tal:block>
151  </table>
153  <table class="files" tal:condition="context/files">
154   <tr><th colspan="2" class="header">Files</th></tr>
155   <tr><th>File name</th><th>Uploaded</th></tr>
156   <tr tal:repeat="file context/files">
157    <td>
158     <a tal:attributes="href string:file${file/id}/${file/name}"
159        tal:content="file/name">dld link</a>
160    </td>
161    <td>
162     <span tal:content="file/creator">creator's name</span>,
163     <span tal:content="file/creation">creation date</span>
164    </td>
165   </tr>
166  </table>
168  <tal:block tal:replace="structure context/history" />
170 </tal:block>
172 </td>
174 </tal:block>