root/yapcasia2008/actdocs/templates/user/search_form

Revision 2610 (checked in by miyagawa, 12 years ago)

merged test to prod

Line 
1 [% WRAPPER ui title = loc('Search for users') %]
2
3 <form method="POST" action="[% global.request.r.uri %]" id="user-search">
4
5 <fieldset>
6 <legend>{{Search form}}</legend>
7
8 <table>
9 <tr>
10    <td><label for="user-name">{{Name}}</label></td>
11    <td>
12       <input type="text" name="name" id="user-name" value="[% global.request.args.name %]" size="25" maxlength="60" />
13    </td>
14 </tr>
15 <tr>
16    <td><label for="user-town">{{City}}</label></td>
17    <td>
18       <input type="text" name="town" id="user-town" value="[% global.request.args.town %]" size="25" maxlength="60" />
19    </td>
20 </tr>
21 <tr>
22    <td><label for="user-country">{{Country}}</label></td>
23    <td>
24       <select name="country" id="user-country">
25          <option value=""[% ' selected="selected"' UNLESS global.request.args.country %]>{{Any}}</option>
26          [% FOREACH c = countries %]
27             <option value="[% c.iso %]"[% ' selected="selected"' IF global.request.args.country == c.iso %]>[% c.name %]</option>
28          [% END %]
29       </select>
30    </td>
31 </tr>
32 <tr>
33    <td><label for="user-group">{{Monger group}}</label></td>
34    <td>
35       <select name="pm_group" id="user-group">
36          <option value=""[% ' selected="selected"' UNLESS global.request.args.pm_group %]>{{Any}}</option>
37          [% FOREACH g = pm_groups %]
38             <option value="[% g %]"[% ' selected="selected"' IF global.request.args.pm_group == g %]>[% g %]</option>
39          [% END %]
40       </select>
41    </td>
42 </tr>
43 </table>
44
45 <input type="submit" name="search" value="{{Search}}" />
46
47 </fieldset>
48
49 [% PROCESS user/list IF users %]
50
51 <br />
52
53 [% IF prev %]
54   <input type="hidden" name="oprev" value="[% oprev %]" />
55   <input type="submit" name="prev"  value="&lt;&lt;" />
56 [% END %]
57 [% IF next %]
58   [% "&nbsp;&nbsp;&nbsp;" IF oprev %]
59   <input type="hidden" name="onext" value="[% onext %]" />
60   <input type="submit" name="next"  value="&gt;&gt;" />
61 [% END %]
62
63 </form>
64
65 [% END %]
Note: See TracBrowser for help on using the browser.