-
Notifications
You must be signed in to change notification settings - Fork 0
/
issue.item.html
243 lines (227 loc) · 11.8 KB
/
issue.item.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title">
<tal:block condition="context/id" i18n:translate=""
>Issue <span tal:replace="context/id" i18n:name="id"
/>: <span tal:replace="context/title" i18n:name="title"
/> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
/></tal:block>
<tal:block condition="not:context/id" i18n:translate=""
>New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
/></tal:block>
</title>
<tal:block metal:fill-slot="body_title">
<span tal:condition="python: not (context.id or context.is_edit_ok())"
tal:omit-tag="python:1" i18n:translate="">New Issue</span>
<span tal:condition="python: not context.id and context.is_edit_ok()"
tal:omit-tag="python:1" i18n:translate="">New Issue Editing</span>
<span tal:condition="python: context.id and not context.is_edit_ok()"
tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
replace="context/id" i18n:name="id" /></span>
<span tal:condition="python: context.id and context.is_edit_ok()"
tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
replace="context/id" i18n:name="id" /> Editing</span>
</tal:block>
<tal:block metal:fill-slot="skiplinks">
<li tal:condition="python:context.is_view_ok() and context.messages"><a class="ym-skip" tal:attributes="href python:'#issue-msg{}'.format(next(iter(context.messages.reverse())).id)">Skip to latest discussion message (Press Enter)</a></li>
</tal:block>
<div class="content" metal:fill-slot="content">
<p tal:condition="python:not (context.is_view_ok() or request.user.hasRole('Anonymous'))" i18n:translate="" class="box error">
You are not allowed to view this page.
</p>
<p tal:condition="python:not context.is_view_ok() and request.user.hasRole('Anonymous')" i18n:translate="" class="box note">
Please login with your username and password.
</p>
<div tal:condition="context/is_view_ok">
<nav class="ym-hlist issue-nav">
<h6 class="ym-htitle">Quick links</h6>
<ul>
<li tal:condition="python:context.messages"><a tal:attributes="href python:'#issue-msg{}'.format(next(iter(context.messages.reverse())).id)">Latest discussion</a></li>
</ul>
</nav>
<form method="POST" name="itemSynopsis"
onSubmit="return submit_once()" enctype="multipart/form-data"
tal:attributes="action context/designator" class="ym-form issue linearize-form">
<div class="ym-fbox">
<label for="title" i18n:translate="">Title <sup class="ym-required">*</sup></label>
<span tal:replace="structure python:context.title.field(id='title', required='required')"/>
</div>
<div class="ym-fbox">
<div class="ym-fbox-wrap ym-grid">
<div class="ym-g50 ym-gl"><div class="ym-gbox-left ym-fbox-text">
<label for="priority" i18n:translate="">Priority <sup class="ym-required">*</sup></label>
<span tal:replace="structure python:context.priority.menu(html_kwargs={'id': 'priority', 'required': 'required'})" />
</div></div>
<div class="ym-g50 ym-gr"><div class="ym-gbox-right ym-fbox-text">
<label for="status" i18n:translate="">Status <sup class="ym-required">*</sup></label>
<span tal:replace="structure python:context.status.menu(html_kwargs={'id': 'status', 'required': 'required'})" />
</div></div>
</div>
</div>
<div class="ym-fbox">
<div class="ym-fbox-wrap ym-grid">
<div class="ym-g50 ym-gl"><div class="ym-gbox-left ym-fbox-text">
<label for="due_date" i18n:translate="">Due Date</label>
<span tal:replace="structure python:context.due_date.field(format='%Y-%m-%d', id='due_date')" />
</div></div>
<div class="ym-g50 ym-gr"><div class="ym-gbox-right ym-fbox-text">
<label for="revives" i18n:translate="">Revives</label>
<span tal:replace="structure python:context.revives.field(format='%Y-%m-%d', id='revives')" />
</div></div>
</div>
</div>
<div class="ym-fbox">
<div class="ym-fbox-wrap ym-grid">
<div class="ym-g50 ym-gl"><div class="ym-gbox-left ym-fbox-text">
<label for="assignedto" i18n:translate="">Assigned To</label>
<span tal:replace="structure python:context.assignedto.menu(html_kwargs={'id': 'assignedto'})" />
</div></div>
<div class="ym-g50 ym-gr"><div class="ym-gbox-right ym-fbox-text">
<label for="keywords" i18n:translate="">Keywords <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyword.classhelp(property='keyword', label='(select from all keywords)', height='1600', width='800')" /></label>
<span tal:replace="structure python:context.keyword.field(id='keywords')" />
</div></div>
</div>
</div>
<div class="ym-fbox">
<div class="ym-fbox-wrap ym-grid">
<div class="ym-g50 ym-gl"><div class="ym-gbox-left ym-fbox-text">
<label for="superseder" i18n:translate="">Requires <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder', filter='status=1,2,3', label='(select from open issues)', height='1600', width='800')" /></label>
<span tal:replace="structure python:context.superseder.field(showid=1, id='superseder')" />
<ul tal:condition="context/superseder" class="requires">
<li tal:repeat="sup context/superseder">
<a tal:attributes="href string:issue${sup/id}" tal:content="string:${sup/id} - ${sup/title}" />
</li>
</ul>
</div></div>
<div class="ym-g50 ym-gr"><div class="ym-gbox-right ym-fbox-text">
<div class="ym-label" i18n:translate="">Required for</div>
<tal:block tal:define="sups python:db.issue.filter(filterspec=dict(superseder=context.id))">
<ul tal:condition="sups">
<li tal:repeat="sup sups">
<a tal:attributes="href string:issue${sup/id}" tal:content="string:${sup/id} - ${sup/title}" />
</li>
</ul>
<div tal:condition="not:sups">nothing else</div>
</tal:block>
</div></div>
</div>
</div>
<div class="ym-fbox">
<div class="ym-fbox-wrap ym-grid">
<div class="ym-g50 ym-gl"><div class="ym-gbox-left ym-fbox-text">
<label for="nosy" i18n:translate="">Nosy list <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.user.classhelp('username,realname', property='nosy', label='(select from user list)', height='1600', width='800')" /></label>
<span tal:replace="structure python:context.nosy.field(id='nosy')" />
</div></div>
<div class="ym-g50 ym-gr"><div class="ym-gbox-right ym-fbox-text">
<div class="ym-label" i18n:translate="">Public</div>
<div class="ym-fbox-wrap ym-grid" tal:condition="context/is_edit_ok">
<div class="ym-g25 ym-gl"><div class="ym-gbox-left ym-fbox-check">
<input tal:condition="python:context.public._value" type="radio" value="yes" name="public" id="public-yes" checked="checked"/>
<input tal:condition="python:(not context.public._value)" type="radio" value="yes" name="public" id="public-yes" />
<label for="public-yes" i18n:translate="">yes</label>
</div></div>
<div class="ym-g25 ym-gl"><div class="ym-gbox ym-fbox-check">
<input tal:condition="python:(not context.public._value)" type="radio" value="no" name="public" id="public-no" checked="checked"/>
<input tal:condition="python:context.public._value" type="radio" value="no" name="public" id="public-no" />
<label for="public-no" i18n:translate="">no</label>
</div></div>
</div>
<div tal:condition="not:context/is_edit_ok" tal:content="python:context.public.plain()" />
</div></div>
</div>
</div>
<div class="ym-fbox" tal:condition="context/is_edit_ok">
<label for="note" i18n:translate="">Change note</label>
<textarea tal:content="request/form/@note/value | default" name="@note" wrap="hard" cols="72" rows="15" id="note"/>
</div>
<div class="ym-fbox" tal:condition="context/is_edit_ok">
<label for="file" i18n:translate="">Attach file</label>
<input type="file" size="60" id="file" name="@file" />
</div>
<div class="ym-fbox-footer ym-fbox-button" tal:condition="context/is_edit_ok">
<input type="hidden" name="@template" value="item">
<input type="hidden" name="@required" value="title,priority">
<input type="hidden" name="@action" value="new">
<button type="submit" class="ym-primary ym-save ym-button" tal:condition="context/id">Update</button>
<button type="submit" class="ym-success ym-save ym-button" tal:condition="not:context/id">Submit new issue</button>
<button type="reset" class="ym-warning ym-cancel ym-button">Discard all changes</button>
</div>
</form>
<div tal:condition="not:context/id" i18n:translate="" class="box ">
<strong>Note:</strong> Fields marked with <sup class="ym-required">*</sup> are required.
</div>
<p tal:condition="context/id" i18n:translate="">
Created on <b><tal:x replace="context/creation" i18n:name="creation" /></b>
by <b><tal:x replace="context/creator" i18n:name="creator" /></b>,
last changed <b><tal:x replace="context/activity" i18n:name="activity" /></b>
by <b><tal:x replace="context/actor" i18n:name="actor" /></b>.
</p>
<tal:block tal:condition="context/messages">
<h3>Discussion</h3>
<ol class="issue-messages">
<li tal:repeat="msg context/messages" class="issue-message" tal:attributes="id python:'issue-msg{}'.format(msg.id)">
<h5><a tal:attributes="href string:msg${msg/id}" i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></h5>
<div class="issue-message-meta">
<dl class="issue-message-meta" i18n:translate="">
<dt>Author</dt>
<dd><tal:x replace="msg/author" i18n:name="author" /></dd>
<dt>Date</dt>
<dd><tal:x replace="msg/date" i18n:name="date" /></dd>
<dt>Link</dt>
<dd><a tal:attributes="href string:#issue-msg${msg/id}">msg<tal:x replace="msg/id" i18n:name="id"/> in this discussion</a></dd>
</dl>
</div>
<pre tal:content="structure msg/content/hyperlinked" />
<tal:block tal:condition="msg/files">
<h6>Attachments</h6>
<ul>
<li tal:repeat="file msg/files">
<a tal:attributes="href file/download_url" tal:content="file/name" />
</li>
</ul>
</tal:block>
<div class="issue-message-align-meta" />
</li>
</ol>
</tal:block>
<!-- Uncomment the following to list all files without
their messages -->
<!--
<table class="files" tal:condition="context/files">
<tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
<tr>
<th i18n:translate="">File name</th>
<th i18n:translate="">Uploaded</th>
<th i18n:translate="">Type</th>
<th i18n:translate="">Edit</th>
<th i18n:translate="">Remove</th>
</tr>
<tr tal:repeat="file context/files">
<td>
<a tal:attributes="href file/download_url"
tal:content="file/name">dld link</a>
</td>
<td>
<span tal:content="file/creator">creator's name</span>,
<span tal:content="file/creation">creation date</span>
</td>
<td tal:content="file/type" />
<td><a tal:condition="file/is_edit_ok"
tal:attributes="href string:file${file/id}">edit</a>
</td>
<td>
<form style="padding:0" tal:condition="context/is_edit_ok"
tal:attributes="action string:issue${context/id}">
<input type="hidden" name="@remove@files" tal:attributes="value file/id">
<input type="hidden" name="@action" value="edit">
<input type="submit" value="remove" i18n:attributes="value">
</form>
</td>
</tr>
</table>
-->
<tal:block tal:condition="context/id" tal:replace="structure context/history" />
</div>
</div>
</tal:block>
<!-- SHA: a242ab3ed5c6969916f3c42f80d487710f165fb8 -->