annotate templates/classic/html/issue.item.html @ 1978:eb043e7d0899

changed template to remove duplicate display table... ...using built-in permission checks now fixed permissions settings for anonymous to make view work again for them
author Richard Jones <richard@users.sourceforge.net>
date Mon, 19 Jan 2004 23:57:47 +0000
parents 3a4abf6d48c2
children 95623e250b01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2 <tal:block metal:use-macro="templates/page/macros/icing">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
3 <title metal:fill-slot="head_title">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
4 <span tal:replace="config/TRACKER_NAME" />:
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
5 <span tal:condition="context/id"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
6 tal:replace="string:Issue ${context/id}: ${context/title}" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
7 </title>
1976
3a4abf6d48c2 body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents: 1911
diff changeset
8 <span metal:fill-slot="body_title" tal:omit-tag="python:1">
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
9 <tal:x tal:condition="not:context/id">New</tal:x>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
10 Issue<span tal:replace="context/id" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
1976
3a4abf6d48c2 body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents: 1911
diff changeset
12 </span>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
13
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
14 <td class="content" metal:fill-slot="content">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
15
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
16 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
17 enctype="multipart/form-data" tal:attributes="action context/designator">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
18
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
19 <table class="form">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
20 <tr>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
21 <th class="required">Title</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
22 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
23 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
24
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
25 <tr>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
26 <th class="required">Priority</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
27 <td tal:content="structure context/priority/menu">priority</td>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
28 <th>Status</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
29 <td tal:content="structure context/status/menu">status</td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
31
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 <tr>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
33 <th>Superseder</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
34 <td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
35 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
36 <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
37 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
38 <br>View: <a tal:attributes="href string:issue${sup/id}"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
39 tal:content="sup/id"></a>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
40 </span>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
41 </td>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
42 <th>Nosy List</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
43 <td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
44 <span tal:replace="structure context/nosy/field" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
45 <span tal:replace="structure
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
46 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
47 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
48 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
49
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
50 <tr>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
51 <th>Assigned To</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
52 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
53 <th>Topics</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
54 <td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
55 <span tal:replace="structure context/topic/field" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
56 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
57 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
58 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
59
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
60 <tr tal:condition="context/is_edit_ok">
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
61 <th>Change Note</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
62 <td colspan=3>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1829
diff changeset
63 <textarea tal:content="request/form/@note/value | default"
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1829
diff changeset
64 name="@note" wrap="hard" rows="5" cols="80"></textarea>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
65 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
66 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
67
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
68 <tr tal:condition="context/is_edit_ok">
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1773
diff changeset
69 <th>File</th>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1829
diff changeset
70 <td colspan=3><input type="file" name="@file" size="40"></td>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
71 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
72
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
73 <tr tal:condition="context/is_edit_ok">
1829
4e4afbe3cd30 Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1825
diff changeset
74 <td>
4e4afbe3cd30 Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1825
diff changeset
75 &nbsp;
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1829
diff changeset
76 <input type="hidden" name="@template" value="item">
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1829
diff changeset
77 <input type="hidden" name="@required" value="title,priority">
1829
4e4afbe3cd30 Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1825
diff changeset
78 </td>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
79 <td colspan=3 tal:content="structure context/submit">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
80 submit button will go here
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
81 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
82 </tr>
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
83
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
84 </table>
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
85
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
86 </form>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
87
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
88 <table class="form" tal:condition="not:context/id">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
89 <tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
90 <td>Note:&nbsp;</td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
91 <th class="required">highlighted</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
92 <td>&nbsp;fields are required.</td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
93 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
94 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
95
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
96 <p tal:condition="context/id" tal:content="structure string:Created on
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
97 <b>${context/creation}</b> by <b>${context/creator}</b>, last
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
98 changed <b>${context/activity}</b>.">activity info
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
99 </p>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
100
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
101 <table class="messages" tal:condition="context/messages">
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
102 <tr><th colspan="4" class="header">Messages</th></tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
103 <tal:block tal:repeat="msg context/messages/reverse">
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
104 <tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
105 <th><a tal:attributes="href string:msg${msg/id}"
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
106 tal:content="string:msg${msg/id}"></a></th>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
107 <th tal:content="string:Author: ${msg/author}">author</th>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
108 <th tal:content="string:Date: ${msg/date}">date</th>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
109 <th>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
110 <a tal:condition="context/is_edit_ok"
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
111 tal:attributes="href string:issue${context/id}?@remove@messages=${msg/id}&@action=edit">remove</a>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
112 </th>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
113 </tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
114 <tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
115 <td colspan="4" class="content">
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
116 <pre tal:content="structure msg/content/hyperlinked">content</pre>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
117 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
118 </tr>
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
119 </tal:block>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
120 </table>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
121
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
122 <table class="files" tal:condition="context/files">
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
123 <tr><th colspan="2" class="header">Files</th></tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
124 <tr><th>File name</th><th>Uploaded</th></tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
125 <tr tal:repeat="file context/files">
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
126 <td>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
127 <a tal:attributes="href string:file${file/id}/${file/name}"
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
128 tal:content="file/name">dld link</a>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
129 </td>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
130 <td>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
131 <span tal:content="file/creator">creator's name</span>,
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
132 <span tal:content="file/creation">creation date</span>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
133 </td>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
134 </tr>
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
135 </table>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
136
1978
eb043e7d0899 changed template to remove duplicate display table...
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
137 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
138
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
139 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
140
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
141 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/