3215703e28111ef2ecddec2dd7b18527f7b75870
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">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
46 python:db.user.classhelp('username,realname,address,phone')" /><br>
47 </td>
48 </tr>
50 <tr>
51 <th nowrap>Assigned To</th>
52 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
53 <th nowrap>Topics</th>
54 <td>
55 <span tal:replace="structure context/topic/field" />
56 <span tal:replace="structure db/keyword/classhelp" />
57 </td>
58 </tr>
60 <tr>
61 <th nowrap>Change Note</th>
62 <td colspan=3>
63 <textarea name=":note" wrap="hard" rows="5" cols="60"></textarea>
64 </td>
65 </tr>
67 <tr>
68 <th nowrap>File</th>
69 <td colspan=3><input type="file" name=":file" size="40"></td>
70 </tr>
72 <tr>
73 <td> </td>
74 <td colspan=3 tal:content="structure context/submit">
75 submit button will go here
76 </td>
77 </tr>
78 </table>
80 </form>
82 <table class="form" tal:condition="context/is_only_view_ok">
83 <tr>
84 <th nowrap>Title</th><td colspan=3 tal:content="context/title">title</td>
85 </tr>
87 <tr>
88 <th nowrap>Priority</th><td tal:content="context/priority">priority</td>
89 <th nowrap>Status</th><td tal:content="context/status">status</td>
90 </tr>
92 <tr>
93 <th nowrap>Superseder</th>
94 <td>
95 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
96 <br>View: <a tal:attributes="href string:issue${sup/id}"
97 tal:content="sup/id"></a>
98 </span>
99 </td>
100 <th nowrap>Nosy List</th><td><span tal:replace="context/nosy" /></td>
101 </tr>
103 <tr>
104 <th nowrap>Assigned To</th><td tal:content="context/assignedto"></td>
105 <th nowrap>Topics</th><td tal:content="structure context/topic"></td>
106 </tr>
107 </table>
109 <tal:block tal:condition="python:context.id and context.is_view_ok()">
111 <p tal:content="structure string:Created on
112 <b>${context/creation}</b> by <b>${context/creator}</b>, last
113 changed <b>${context/activity}</b>.">activity info
114 </p>
116 <table class="messages" tal:condition="context/messages">
117 <tr><th colspan=4 class="header">Messages</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 nowrap tal:content="msg/date/pretty">date</td>
123 <td tal:content="msg/summary">summary</td>
124 <td>
125 <a tal:attributes="href string:?:remove:messages=${msg/id}&:action=edit">remove</a>
126 </td>
127 </tr>
128 </table>
130 <table class="files" tal:condition="context/files">
131 <tr><th colspan="2" class="header">Files</th></tr>
132 <tr><th>File name</th><th>Uploaded</th></tr>
133 <tr tal:repeat="file context/files">
134 <td>
135 <a tal:attributes="href string:file${file/id}/${file/name}"
136 tal:content="file/name">dld link</a>
137 </td>
138 <td>
139 <span tal:content="file/creator">creator's name</span>,
140 <span tal:content="file/creation">creation date</span>
141 </td>
142 </tr>
143 </table>
145 <tal:block tal:replace="structure context/history" />
147 </tal:block>
149 </td>
151 </tal:block>