Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/roundup/templates/confidential.item.html.erb

Issue 4815057535893504: Configured Roundup tracker. (Closed)
Patch Set: Created Feb. 14, 2014, 9:59 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 <tal:block condition="context/id" i18n:translate=""
5 >Issue <tal:x tal:content="context/id" i18n:name="id"
6 />: <tal:x content="context/title" i18n:name="title"
7 /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker"
8 /></tal:block>
9 <tal:block condition="not:context/id" i18n:translate=""
10 >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
11 /></tal:block>
12 </title>
13 <tal:block metal:fill-slot="body_title">
14 <span tal:condition="python: not (context.id or context.is_edit_ok())"
15 tal:omit-tag="python:1" >New CONFIDENTIAL Issue</span>
16 <span tal:condition="python: not context.id and context.is_edit_ok()"
17 tal:omit-tag="python:1" i18n:translate="">New CONFIDENTIAL Issue Editing</span >
18 <span tal:condition="python: context.id and not context.is_edit_ok()"
19 tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
20 replace="context/id" i18n:name="id" /></span>
21 <span tal:condition="python: context.id and context.is_edit_ok()"
22 tal:omit-tag="python:1" i18n:translate="">CONFIDENTIAL Issue<tal:x
23 replace="context/id" i18n:name="id" /> Editing</span>
24 </tal:block>
25
26 <td class="content" metal:fill-slot="content">
27
28 <p tal:condition="python:not (context.is_view_ok()
29 or request.user.hasRole('Anonymous'))" i18n:translate="">
30 You are not allowed to view this page.</p>
31
32 <p tal:condition="python:not context.is_view_ok()
33 and request.user.hasRole('Anonymous')" i18n:translate="">
34 Please login with your username and password.</p>
35
36 <div tal:condition="context/is_view_ok">
37
38 <form method="POST" name="itemSynopsis"
39 onSubmit="return submit_once()" enctype="multipart/form-data"
40 tal:attributes="action context/designator">
41
42 <table class="form">
43 <tr>
44 <th class="required" i18n:translate="">Title</th>
45 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title </td>
46 </tr>
47
48 <tr>
49 <th class="required">Type</th>
50 <td tal:content="structure context/type/menu">type</td>
51 </tr>
52
53 <tr>
54 <th>Module</th>
55 <td tal:content="structure context/module/menu">module</td>
56 </tr>
57
58 <tr>
59 <th i18n:translate="">Priority</th>
60 <td tal:content="structure context/priority/menu">priority</td>
61 </tr>
62
63 <tr>
64 <th i18n:translate="">Status</th>
65 <td tal:content="structure context/status/menu">status</td>
66 </tr>
67
68 <tr>
69 <th >Depends on</th>
70 <td>
71 <span tal:replace="structure python:context.superseder.field(showid=1, size=20 )" />
72 <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issu e.classhelp('id,title', property='superseder')" />
73 <span tal:condition="context/superseder">
74 <br><span i18n:translate="">View:</span>
75 <a tal:repeat="sup context/superseder"
76 tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)"
77 tal:attributes="href string:issue${sup/id}"></a>
78 </span>
79 </td>
80 <tr tal:condition="context/is_edit_ok">
81 <th >CC list</th>
82 <td>
83 <span tal:replace="structure context/nosy/field" />
84 <span tal:condition="context/is_edit_ok" tal:replace="structure
85 python:db.user.classhelp('username,realname,address', property='nosy', width='60 0')" /><br>
86 </td>
87 </tr>
88
89 <tr>
90 <tr tal:condition="context/is_edit_ok">
91 <th >Assigned</th>
92 <td>
93 <span tal:replace="structure context/assignedto/field" />
94 <span tal:condition="context/is_edit_ok" tal:replace="structure
95 python:db.user.classhelp('username,realname,address', property='assignedto', wid th='600')" /><br>
96 </td>
97 <th i18n:translate="">Keywords</th>
98 <td>
99 <span tal:replace="structure context/keyword/field" />
100 <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyw ord.classhelp(property='keyword')" />
101 </td>
102 </tr>
103
104 <tr tal:condition="context/is_edit_ok">
105 <th >Comment</th>
106 <td colspan=3>
107 <textarea tal:content="request/form/@note/value | default"
108 name="@note" wrap="hard" rows="5" cols="80"></textarea>
109 </td>
110 </tr>
111
112 <tr tal:condition="context/is_edit_ok">
113 <th i18n:translate="">File</th>
114 <td colspan=3><input type="file" name="@file" size="40"></td>
115 </tr>
116
117 <tr tal:condition="context/is_edit_ok">
118 <td>
119 &nbsp;
120 <input type="hidden" name="@template" value="item">
121 <input type="hidden" name="@required" value="title">
122 <input type="hidden" name="@required" value="type">
123 </td>
124 <td colspan=3>
125 <span tal:replace="structure context/submit">submit button</span>
126 <a tal:condition="context/id" tal:attributes="href context/copy_url"
127 i18n:translate="">Make a copy</a>
128 </td>
129 </tr>
130
131 </table>
132 </form>
133
134 <tal:block tal:condition="not:context/id" i18n:translate="">
135 <table class="form">
136 <tr>
137 <td>Note:&nbsp;</td>
138 <th class="required">highlighted</th>
139 <td>&nbsp;fields are required.</td>
140 </tr>
141 </table>
142 </tal:block>
143
144 <p tal:condition="context/id" i18n:translate="">
145 Created on <b tal:content="context/creation" i18n:name="creation" />
146 by <b tal:content="context/creator" i18n:name="creator" />,
147 last changed <b content="context/activity" i18n:name="activity" />
148 by <b tal:content="context/actor" i18n:name="actor" />.
149 </p>
150
151 <table class="files" tal:condition="context/files">
152 <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
153 <tr>
154 <th i18n:translate="">File name</th>
155 <th i18n:translate="">Uploaded</th>
156 <th i18n:translate="">Type</th>
157 <th i18n:translate="">Edit</th>
158 <th i18n:translate="">Remove</th>
159 </tr>
160 <tr tal:repeat="file context/files">
161 <td>
162 <a tal:attributes="href file/download_url"
163 tal:content="file/name">dld link</a>
164 </td>
165 <td>
166 <span tal:content="file/creator">creator's name</span>,
167 <span tal:content="file/creation">creation date</span>
168 </td>
169 <td tal:content="file/type" />
170 <td><a tal:condition="file/is_edit_ok"
171 tal:attributes="href string:file${file/id}">edit</a>
172 </td>
173 <td>
174 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
175 tal:attributes="action string:issue${context/id}">
176 <input type="hidden" name="@remove@files" tal:attributes="value file/id">
177 <input type="hidden" name="@action" value="edit">
178 <input type="submit" value="remove" i18n:attributes="value">
179 </form>
180 </td>
181 </tr>
182 </table>
183
184 <table class="messages" tal:condition="context/messages">
185 <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
186 <tal:block tal:repeat="msg context/messages">
187 <tr>
188 <th><a tal:attributes="href string:msg${msg/id}"
189 i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></t h>
190 <th i18n:translate="">Author: <tal:x replace="msg/author"
191 i18n:name="author" /></th>
192 <th i18n:translate="">Date: <tal:x replace="msg/date"
193 i18n:name="date" /></th>
194 <th>
195 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
196 tal:attributes="action string:issue${context/id}">
197 <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
198 <input type="hidden" name="@action" value="edit">
199 <input type="submit" value="remove" i18n:attributes="value">
200 </form>
201 </th>
202 </tr>
203 <tr>
204 <td colspan="4" class="content">
205 <pre tal:content="structure msg/content/hyperlinked">content</pre>
206 </td>
207 </tr>
208 </tal:block>
209 </table>
210
211 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
212
213 </div>
214
215 </td>
216
217 </tal:block>
218 <!-- SHA: a242ab3ed5c6969916f3c42f80d487710f165fb8 -->
OLDNEW
« no previous file with comments | « modules/roundup/templates/confidential.index.html.erb ('k') | modules/roundup/templates/confidential.search.html.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld