root/yapcasia2008-test/actdocs/templates/user/search_form

Revision 2506 (checked in by kaminogoya, 12 years ago)

added page title header

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