source: LATMOS-Accounts-Web/root/html/users/index.tt @ 121

Last change on this file since 121 was 121, checked in by nanardon, 15 years ago
  • main page is now empty

/users give users list + filter

  • Property svn:keywords set to Id Rev
File size: 1.2 KB
Line 
1[% db = c.model('Accounts').db %]
2<!-- $Id -->
3<div style="float: right" id="filter">
4<p>Filtre:</p>
5<form action="[% c.uri_for() %]" method="POST">
6[% FOREACH item = [0, 1, 2 ] %]
7[% IF loop.first %]
8<table border="0">
9<tr><th>Champs</th><th>contient:</th></tr>
10[% END %]
11<tr>
12<td>
13<select name="attr">
14<option value=""></option>
15[% FOREACH f = db.list_canonical_fields('user', 'r') %]
16<option value="[% f | html %]" [% ' selected="1"' IF c.req.params.attr.$item == f %]>
17    [% c.model('AttrForms').attr_label(f) | html %]
18</option>
19[% END %]
20</select>
21</td>
22<td><input type="text" name="attrval" value="[% c.req.params.attrval.$item | html %]"></td></tr>
23[% IF loop.last %]
24</table>
25[% END %]
26[% END %]
27
28<input type="submit">
29</form>
30</div>
31
32<table border="0">
33[% FOREACH username = userslist %]
34[% user = db.get_object('user', username) %]
35<tr>
36    <td>[% user.get_c_field('uid') | html %]</td>
37    <td>
38        [% user.get_c_field('sn') | html %]
39        [% user.get_c_field('givenName') | html %]
40    <a href="[% c.uri_for('/users', username) %]">
41        <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]"
42            height="16" width="16"
43            alt="[% "edit " _ username | html %]">
44    </a></td>
45</tr>
46[% END %]
47</table>
Note: See TracBrowser for help on using the repository browser.