Code

- replaced the content() callback ickiness with Page Template macro usage
[roundup.git] / roundup / templates / classic / html / issue.item
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/page">
3 <title metal:fill-slot="head_title">Issue editing</title>
4 <td class="page-header-top" metal:fill-slot="body_title"><h2>Issue Editing</h2>
5 </td>
7 <td class="content" metal:fill-slot="content">
9 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
10 You are not allowed to view this page.
11 </span>
13 <form method="POST" onSubmit="return submit_once()"
14       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
16 <input type="hidden" name=":template" value="item">
17 <input type="hidden" name=":required" value="title,priority">
19 <table class="form">
20 <tr>
21  <th nowrap>Title</th>
22  <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
23 </tr>
25 <tr>
26  <th nowrap>Priority</th>
27  <td tal:content="structure context/priority/menu">priority</td>
28  <th nowrap>Status</th>
29  <td tal:content="structure context/status/menu">status</td>
30 </tr>
32 <tr>
33  <th nowrap>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')" />
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 nowrap>Nosy List</th>
43  <td>
44   <span tal:replace="structure context/nosy/field" />
45   <span tal:replace="structure python:db.user.classhelp('username,realname,address,phone')" />
46  </td>
47 </tr>
49 <tr>
50  <th nowrap>Assigned To</th>
51  <td tal:content="structure context/assignedto/menu">assignedto menu</td>
52  <th nowrap>Topics</th>
53  <td>
54   <span tal:replace="structure context/topic/field" />
55   <span tal:replace="structure db/keyword/classhelp" />
56  </td>
57 </tr>
59 <tr>
60  <th nowrap>Change Note</th>
61  <td colspan=3>
62   <textarea name=":note" wrap="hard" rows="5" cols="60"></textarea>
63  </td>
64 </tr>
66 <tr>
67  <th nowrap>File</th>
68  <td colspan=3><input type="file" name=":file" size="40"></td>
69 </tr>
71 <tr>
72  <td>&nbsp;</td>
73  <td colspan=3 tal:content="structure context/submit">
74   submit button will go here
75  </td>
76 </tr>
77 </table>
79 </form>
81 <table class="form" tal:condition="context/is_only_view_ok">
82 <tr>
83  <th nowrap>Title</th><td colspan=3 tal:content="context/title">title</td>
84 </tr>
86 <tr>
87  <th nowrap>Priority</th><td tal:content="context/priority">priority</td>
88  <th nowrap>Status</th><td tal:content="context/status">status</td>
89 </tr>
91 <tr>
92  <th nowrap>Superseder</th>
93  <td>
94   <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
95    <br>View: <a tal:attributes="href string:issue${sup/id}"
96                 tal:content="sup/id"></a>
97   </span>
98  </td>
99  <th nowrap>Nosy List</th><td><span tal:replace="context/nosy" /></td>
100 </tr>
102 <tr>
103  <th nowrap>Assigned To</th><td tal:content="context/assignedto"></td>
104  <th nowrap>Topics</th><td tal:content="structure context/topic"></td>
105 </tr>
106 </table>
108 <tal:block tal:condition="python:context.id and context.is_view_ok()">
110  <p tal:content="structure string:Created on
111   <b>${context/creation}</b> by <b>${context/creator}</b>, last
112   changed <b>${context/activity}</b>.">activity info
113  </p>
115  <table class="messages" tal:condition="context/messages">
116   <tr><th colspan=4 class="header">Messages</th></tr>
117   <tr><th>Message</th><th>Author</th><th>Date</th><th>Summary</th></tr>
118   <tr tal:repeat="msg context/messages/reverse">
119    <td><a tal:attributes="href string:msg${msg/id}"
120           tal:content="string:msg${msg/id}"></a></td>
121    <td tal:content="msg/author">author</td>
122    <td tal:content="msg/date">date</td>
123    <td tal:content="msg/summary">summary</td>
124   </tr>
125  </table>
127  <table class="files" tal:condition="context/files">
128   <tr><th colspan="2" class="header">Files</th></tr>
129   <tr><th>File name</th><th>Uploaded</th></tr>
130   <tr tal:repeat="file context/files">
131    <td>
132     <a tal:attributes="href string:file${file/id}/${file/name}"
133        tal:content="file/name">dld link</a>
134    </td>
135    <td>
136     <span tal:content="file/creator">creator's name</span>,
137     <span tal:content="file/creation">creation date</span>
138    </td>
139   </tr>
140  </table>
142  <tal:block tal:replace="structure context/history" />
144 </tal:block>
146 </td>
148 </tal:block>