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

Side by Side Diff: modules/roundup/templates/issue.search.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 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title" i18n:translate="">Issue searching - <span
3 i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title>
4 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
5 i18n:translate="">Issue searching</span>
6 <td class="content" metal:fill-slot="content">
7
8 <form method="GET" name="itemSynopsis"
9 tal:attributes="action request/classname">
10
11 <table class="form" tal:define="
12 cols python:request.columns or 'id activity title status assignedto'.split();
13 sort_on python:request.sort and request.sort[0] or nothing;
14 sort_desc python:sort_on and sort_on[0] == '-';
15 sort_on python:(sort_on and sort_on[1]) or 'activity';
16 group_on python:request.group and request.group[0] or nothing;
17 group_desc python:group_on and group_on[0] == '-';
18 group_on python:(group_on and group_on[1]) or 'priority';
19
20 search_input templates/page/macros/search_input;
21 search_date templates/page/macros/search_date;
22 column_input templates/page/macros/column_input;
23 sort_input templates/page/macros/sort_input;
24 group_input templates/page/macros/group_input;
25 search_select templates/page/macros/search_select;
26 search_select_keywords templates/page/macros/search_select_keywords;
27 search_select_translated templates/page/macros/search_select_translated;
28 search_multiselect templates/page/macros/search_multiselect;">
29
30 <tr>
31 <th class="header">&nbsp;</th>
32 <th class="header" i18n:translate="">Filter on</th>
33 <th class="header" i18n:translate="">Display</th>
34 <th class="header" i18n:translate="">Sort on</th>
35 <th class="header" i18n:translate="">Group on</th>
36 </tr>
37
38 <tr tal:define="name string:@search_text">
39 <th i18n:translate="">All text*:</th>
40 <td metal:use-macro="search_input"></td>
41 <td>&nbsp;</td>
42 <td>&nbsp;</td>
43 <td>&nbsp;</td>
44 </tr>
45
46 <tr tal:define="name string:title">
47 <th i18n:translate="">Title:</th>
48 <td metal:use-macro="search_input"></td>
49 <td metal:use-macro="column_input"></td>
50 <td metal:use-macro="sort_input"></td>
51 <td>&nbsp;</td>
52 </tr>
53
54 <tr tal:define="name string:keyword;
55 db_klass string:keyword;
56 db_content string:name;">
57 <th i18n:translate="">Keyword:</th>
58 <td metal:use-macro="search_select_keywords">
59 <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
60 tal:attributes="selected python:value == '-1'">not selected</option>
61 </td>
62 <td metal:use-macro="column_input"></td>
63 <td metal:use-macro="sort_input"></td>
64 <td metal:use-macro="group_input"></td>
65 </tr>
66
67 <tr tal:define="name string:id">
68 <th i18n:translate="">ID:</th>
69 <td metal:use-macro="search_input"></td>
70 <td metal:use-macro="column_input"></td>
71 <td metal:use-macro="sort_input"></td>
72 <td>&nbsp;</td>
73 </tr>
74
75 <tr tal:define="name string:creation">
76 <th i18n:translate="">Creation Date:</th>
77 <td metal:use-macro="search_date"></td>
78 <td metal:use-macro="column_input"></td>
79 <td metal:use-macro="sort_input"></td>
80 <td metal:use-macro="group_input"></td>
81 </tr>
82
83 <tr tal:define="name string:creator;
84 db_klass string:user;
85 db_content string:username;"
86 tal:condition="db/user/is_view_ok">
87 <th i18n:translate="">Creator:</th>
88 <td metal:use-macro="search_select">
89 <option metal:fill-slot="extra_options" i18n:translate=""
90 tal:attributes="value request/user/id">created by me</option>
91 </td>
92 <td metal:use-macro="column_input"></td>
93 <td metal:use-macro="sort_input"></td>
94 <td metal:use-macro="group_input"></td>
95 </tr>
96
97 <tr tal:define="name string:activity">
98 <th i18n:translate="">Activity:</th>
99 <td metal:use-macro="search_date"></td>
100 <td metal:use-macro="column_input"></td>
101 <td metal:use-macro="sort_input"></td>
102 <td>&nbsp;</td>
103 </tr>
104
105 <tr tal:define="name string:actor;
106 db_klass string:user;
107 db_content string:username;"
108 tal:condition="db/user/is_view_ok">
109 <th i18n:translate="">Actor:</th>
110 <td metal:use-macro="search_select">
111 <option metal:fill-slot="extra_options" i18n:translate=""
112 tal:attributes="value request/user/id">done by me</option>
113 </td>
114 <td metal:use-macro="column_input"></td>
115 <td metal:use-macro="sort_input"></td>
116 <td>&nbsp;</td>
117 </tr>
118
119 <tr tal:define="name string:type;
120 db_klass string:type;
121 db_content string:name;">
122 <th>Type:</th>
123 <td metal:use-macro="search_select_translated">
124 <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
125 tal:attributes="selected python:value == '-1'">not selected</option>
126 </td>
127 <td metal:use-macro="column_input"></td>
128 <td metal:use-macro="sort_input"></td>
129 <td metal:use-macro="group_input"></td>
130 </tr>
131
132 <tr tal:define="name string:module;
133 db_klass string:module;
134 db_content string:name;">
135 <th>Module:</th>
136 <td metal:use-macro="search_select_translated">
137 <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
138 tal:attributes="selected python:value == '-1'">not selected</option>
139 </td>
140 <td metal:use-macro="column_input"></td>
141 <td metal:use-macro="sort_input"></td>
142 <td metal:use-macro="group_input"></td>
143 </tr>
144
145 <tr tal:define="name string:type;
146 db_klass string:priority;
147 db_content string:name;">
148 <th i18n:translate="">Priority:</th>
149 <td metal:use-macro="search_select_translated">
150 <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
151 tal:attributes="selected python:value == '-1'">not selected</option>
152 </td>
153 <td metal:use-macro="column_input"></td>
154 <td metal:use-macro="sort_input"></td>
155 <td metal:use-macro="group_input"></td>
156 </tr>
157
158 <tr tal:define="name string:status;
159 db_klass string:status;
160 db_content string:name;">
161 <th i18n:translate="">Status:</th>
162 <td metal:use-macro="search_select_translated">
163 <tal:block metal:fill-slot="extra_options">
164 <option value="-1,1,2,3,4,5,6,7" i18n:translate=""
165 tal:attributes="selected python:value == '-1,1,2,3,4,5,6,7'">not r esolved</option>
166 <option value="-1" i18n:translate=""
167 tal:attributes="selected python:value == '-1'">not selected</optio n>
168 </tal:block>
169 </td>
170 <td metal:use-macro="column_input"></td>
171 <td metal:use-macro="sort_input"></td>
172 <td metal:use-macro="group_input"></td>
173 </tr>
174
175 <tr tal:define="name string:assignedto;
176 db_klass string:user;
177 db_content string:username;"
178 tal:condition="db/user/is_view_ok">
179 <th i18n:translate="">Assigned to:</th>
180 <td metal:use-macro="search_select">
181 <tal:block metal:fill-slot="extra_options">
182 <option tal:attributes="value request/user/id"
183 i18n:translate="">assigned to me</option>
184 <option value="-1" tal:attributes="selected python:value == '-1'"
185 i18n:translate="">unassigned</option>
186 </tal:block>
187 </td>
188 <td metal:use-macro="column_input"></td>
189 <td metal:use-macro="sort_input"></td>
190 <td metal:use-macro="group_input"></td>
191 </tr>
192
193 <tr>
194 <th i18n:translate="">No Sort or group:</th>
195 <td>&nbsp;</td>
196 <td>&nbsp;</td>
197 <td><input type="radio" name="@sort" value=""></td>
198 <td><input type="radio" name="@group" value=""></td>
199 </tr>
200
201 <tr>
202 <th i18n:translate="">Pagesize:</th>
203 <td><input name="@pagesize" size="3" value="50"
204 tal:attributes="value request/form/@pagesize/value | default"></td>
205 </tr>
206
207 <tr>
208 <th i18n:translate="">Start With:</th>
209 <td><input name="@startwith" size="3" value="0"
210 tal:attributes="value request/form/@startwith/value | default"></td>
211 </tr>
212
213 <tr>
214 <th i18n:translate="">Sort Descending:</th>
215 <td><input type="checkbox" name="@sortdir"
216 tal:attributes="checked sort_desc">
217 </td>
218 </tr>
219
220 <tr>
221 <th i18n:translate="">Group Descending:</th>
222 <td><input type="checkbox" name="@groupdir"
223 tal:attributes="checked group_desc">
224 </td>
225 </tr>
226
227 <tr tal:condition="python:request.user.hasPermission('Edit', 'query')">
228 <th i18n:translate="">Query name**:</th>
229 <td tal:define="value request/form/@queryname/value | nothing">
230 <input name="@queryname" tal:attributes="value value">
231 <input type="hidden" name="@old-queryname" tal:attributes="value value">
232 </td>
233 </tr>
234
235 <tr>
236 <td>
237 &nbsp;
238 <input type="hidden" name="@action" value="search">
239 </td>
240 <td><input type="submit" value="Search" i18n:attributes="value"></td>
241 </tr>
242
243 <tr><td>&nbsp;</td>
244 <td colspan="4" class="help">
245 <span i18n:translate="" tal:omit-tag="true">
246 *: The "all text" field will look in message bodies and issue titles
247 </span><br>
248 <span tal:condition="python:request.user.hasPermission('Edit', 'query')"
249 i18n:translate="" tal:omit-tag="true"
250 >
251 **: If you supply a name, the query will be saved off and available as a
252 link in the sidebar
253 </span>
254 </td>
255 </tr>
256 </table>
257
258 </form>
259 </td>
260
261 </tal:block>
262 <!-- SHA: 922e9410b35b2ebfbeb2185bfb37b46df22b36e4 -->
OLDNEW
« no previous file with comments | « modules/roundup/templates/issue.item.html.erb ('k') | modules/roundup/templates/nosyreaction.py.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld