Premiere version : mise en route du suivi.
[auf_roundup.git] / share / roundup / templates / classic / html / .svn / text-base / issue.search.html.svn-base
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_translated templates/page/macros/search_select_translated;
27    search_multiselect templates/page/macros/search_multiselect;">
28
29 <tr>
30  <th class="header">&nbsp;</th>
31  <th class="header" i18n:translate="">Filter on</th>
32  <th class="header" i18n:translate="">Display</th>
33  <th class="header" i18n:translate="">Sort on</th>
34  <th class="header" i18n:translate="">Group on</th>
35 </tr>
36
37 <tr tal:define="name string:@search_text">
38   <th i18n:translate="">All text*:</th>
39   <td metal:use-macro="search_input"></td>
40   <td>&nbsp;</td>
41   <td>&nbsp;</td>
42   <td>&nbsp;</td>
43 </tr>
44
45 <tr tal:define="name string:title">
46   <th i18n:translate="">Title:</th>
47   <td metal:use-macro="search_input"></td>
48   <td metal:use-macro="column_input"></td>
49   <td metal:use-macro="sort_input"></td>
50   <td>&nbsp;</td>
51 </tr>
52
53 <tr tal:define="name string:keyword;
54                 db_klass string:keyword;
55                 db_content string:name;">
56   <th i18n:translate="">Keyword:</th>
57   <td metal:use-macro="search_select">
58     <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
59             tal:attributes="selected python:value == '-1'">not selected</option>
60   </td>
61   <td metal:use-macro="column_input"></td>
62   <td metal:use-macro="sort_input"></td>
63   <td metal:use-macro="group_input"></td>
64 </tr>
65
66 <tr tal:define="name string:id">
67   <th i18n:translate="">ID:</th>
68   <td metal:use-macro="search_input"></td>
69   <td metal:use-macro="column_input"></td>
70   <td metal:use-macro="sort_input"></td>
71   <td>&nbsp;</td>
72 </tr>
73
74 <tr tal:define="name string:creation">
75   <th i18n:translate="">Creation Date:</th>
76   <td metal:use-macro="search_date"></td>
77   <td metal:use-macro="column_input"></td>
78   <td metal:use-macro="sort_input"></td>
79   <td metal:use-macro="group_input"></td>
80 </tr>
81
82 <tr tal:define="name string:creator;
83                 db_klass string:user;
84                 db_content string:username;"
85     tal:condition="db/user/is_view_ok">
86   <th i18n:translate="">Creator:</th>
87   <td metal:use-macro="search_select">
88     <option metal:fill-slot="extra_options" i18n:translate=""
89             tal:attributes="value request/user/id">created by me</option>
90   </td>
91   <td metal:use-macro="column_input"></td>
92   <td metal:use-macro="sort_input"></td>
93   <td metal:use-macro="group_input"></td>
94 </tr>
95
96 <tr tal:define="name string:activity">
97   <th i18n:translate="">Activity:</th>
98   <td metal:use-macro="search_date"></td>
99   <td metal:use-macro="column_input"></td>
100   <td metal:use-macro="sort_input"></td>
101   <td>&nbsp;</td>
102 </tr>
103
104 <tr tal:define="name string:actor;
105                 db_klass string:user;
106                 db_content string:username;"
107     tal:condition="db/user/is_view_ok">
108   <th i18n:translate="">Actor:</th>
109   <td metal:use-macro="search_select">
110     <option metal:fill-slot="extra_options" i18n:translate=""
111             tal:attributes="value request/user/id">done by me</option>
112   </td>
113   <td metal:use-macro="column_input"></td>
114   <td metal:use-macro="sort_input"></td>
115   <td>&nbsp;</td>
116 </tr>
117
118 <tr tal:define="name string:priority;
119                 db_klass string:priority;
120                 db_content string:name;">
121   <th i18n:translate="">Priority:</th>
122   <td metal:use-macro="search_select_translated">
123     <option metal:fill-slot="extra_options" value="-1" i18n:translate=""
124             tal:attributes="selected python:value == '-1'">not selected</option>
125   </td>
126   <td metal:use-macro="column_input"></td>
127   <td metal:use-macro="sort_input"></td>
128   <td metal:use-macro="group_input"></td>
129 </tr>
130
131 <tr tal:define="name string:status;
132                 db_klass string:status;
133                 db_content string:name;">
134   <th i18n:translate="">Status:</th>
135   <td metal:use-macro="search_select_translated">
136     <tal:block metal:fill-slot="extra_options">
137       <option value="-1,1,2,3,4,5,6,7" i18n:translate=""
138               tal:attributes="selected python:value == '-1,1,2,3,4,5,6,7'">not resolved</option>
139       <option value="-1" i18n:translate=""
140               tal:attributes="selected python:value == '-1'">not selected</option>
141     </tal:block>
142   </td>
143   <td metal:use-macro="column_input"></td>
144   <td metal:use-macro="sort_input"></td>
145   <td metal:use-macro="group_input"></td>
146 </tr>
147
148 <tr tal:define="name string:assignedto;
149                 db_klass string:user;
150                 db_content string:username;"
151     tal:condition="db/user/is_view_ok">
152   <th i18n:translate="">Assigned to:</th>
153   <td metal:use-macro="search_select">
154     <tal:block metal:fill-slot="extra_options">
155       <option tal:attributes="value request/user/id"
156        i18n:translate="">assigned to me</option>
157       <option value="-1" tal:attributes="selected python:value == '-1'"
158        i18n:translate="">unassigned</option>
159     </tal:block>
160   </td>
161   <td metal:use-macro="column_input"></td>
162   <td metal:use-macro="sort_input"></td>
163   <td metal:use-macro="group_input"></td>
164 </tr>
165
166 <tr>
167  <th i18n:translate="">No Sort or group:</th>
168  <td>&nbsp;</td>
169  <td>&nbsp;</td>
170  <td><input type="radio" name="@sort" value=""></td>
171  <td><input type="radio" name="@group" value=""></td>
172 </tr>
173
174 <tr>
175 <th i18n:translate="">Pagesize:</th>
176 <td><input name="@pagesize" size="3" value="50"
177            tal:attributes="value request/form/@pagesize/value | default"></td>
178 </tr>
179
180 <tr>
181 <th i18n:translate="">Start With:</th>
182 <td><input name="@startwith" size="3" value="0"
183            tal:attributes="value request/form/@startwith/value | default"></td>
184 </tr>
185
186 <tr>
187 <th i18n:translate="">Sort Descending:</th>
188 <td><input type="checkbox" name="@sortdir"
189            tal:attributes="checked sort_desc">
190 </td>
191 </tr>
192
193 <tr>
194 <th i18n:translate="">Group Descending:</th>
195 <td><input type="checkbox" name="@groupdir"
196            tal:attributes="checked group_desc">
197 </td>
198 </tr>
199
200 <tr tal:condition="python:request.user.hasPermission('Edit', 'query')">
201  <th i18n:translate="">Query name**:</th>
202  <td tal:define="value request/form/@queryname/value | nothing">
203   <input name="@queryname" tal:attributes="value value">
204   <input type="hidden" name="@old-queryname" tal:attributes="value value">
205  </td>
206 </tr>
207
208 <tr>
209   <td>
210    &nbsp;
211    <input type="hidden" name="@action" value="search">
212   </td>
213   <td><input type="submit" value="Search" i18n:attributes="value"></td>
214 </tr>
215
216 <tr><td>&nbsp;</td>
217  <td colspan="4" class="help">
218   <span i18n:translate="" tal:omit-tag="true">
219    *: The "all text" field will look in message bodies and issue titles
220   </span><br>
221   <span tal:condition="python:request.user.hasPermission('Edit', 'query')"
222    i18n:translate="" tal:omit-tag="true"
223   >
224    **: If you supply a name, the query will be saved off and available as a
225        link in the sidebar
226   </span>
227  </td>
228 </tr>
229 </table>
230
231 </form>
232 </td>
233
234 </tal:block>