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

Last change on this file since 730 was 682, checked in by nanardon, 14 years ago
  • on user list page, use initials instead page number
  • Property svn:keywords set to Id Rev
File size: 1.1 KB
Line 
1[% db = c.model('Accounts').db %]
2<!-- $Id$ -->
3<div style="float: right" id="filter">
4[% INCLUDE 'includes/filter.tt'
5   formuri = c.uri_for()
6   otype = 'user'
7%]
8</div>
9
10<table border="0">
11<tr><td colspan="2">[% objectslist.size %] Utilisateurs<br>
12[% IF initials %]
13Pages:
14[% FOREACH initial = initials %]
15[% IF c.req.param('start') == initial %]
16< [% initial %] >
17[% ELSE %]
18[% uparams.start = initial %]
19<a href="[% c.uri_for('/users', uparams) %]">[% initial %]</a>
20[% END %]
21[% END %]
22[% END %]
23</td></tr>
24<tr><th>Login</th><th>Nom</th></tr>
25[% FOREACH username = userslist %]
26[% user = db.get_object('user', username) %]
27<tr>
28    <td>[% username | html %]</td>
29    <td>
30        [% user.get_c_field('sn') | html %]
31        [% user.get_c_field('givenName') | html %]
32        [% user.get_c_field('description') | truncate(20) | html %]
33    <a href="[% c.uri_for('/users', username) %]">
34        <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]"
35            height="16" width="16"
36            alt="[% "edit " _ username | html %]">
37    </a></td>
38</tr>
39[% END %]
40</table>
Note: See TracBrowser for help on using the repository browser.