1 |
<!-- $Id$ --> |
2 |
[% IF c.req.param('name') %] |
3 |
[% tuserids = sa50.search_people(c.req.param('name')) %] |
4 |
[% ELSE %] |
5 |
[% tuserids = sa50.list_user_key %] |
6 |
[% END %] |
7 |
|
8 |
<h2>Liste des personnels:</h2> |
9 |
<form action="[% c.req.base %]/id"> |
10 |
<p>Filtrer sur les noms contenant:</p> |
11 |
<p><input type="text" name="name" value="[% c.req.param('name') | html %]"> |
12 |
<input type="submit"></p> |
13 |
</form> |
14 |
<p><a href="[% c.req.base %]/id/new">Ajouter une personne...</a></p> |
15 |
|
16 |
<p><b>[%- tuserids.size -%] personnes trouvées.</b></p> |
17 |
[% FOREACH tuserid = tuserids %] |
18 |
[% tuserinfo = sa50.get_user_info(tuserid) %] |
19 |
[% td = sa50.get_people_date(tuserid) %] |
20 |
[% "<table>\n" IF loop.first %] |
21 |
<tr> |
22 |
<td><a href="[% c.req.base %]/id/[% tuserid %]">[% tuserinfo.name | html %]</a></td> |
23 |
<td><a href="[% c.req.base %]/id/[% tuserid %]">[% tuserinfo.fname | html %]</a></td> |
24 |
<td> |
25 |
[% IF tuserinfo.death %]<a href="[% c.req.base %]/id/[% tuserid %]/death">(Décédé)</a> [% END %] |
26 |
[% IF tuserinfo.grade %][% tuserinfo.grade | html %][% END %] |
27 |
[% IF tuserinfo.work %][% tuserinfo.work | html %][% END %] |
28 |
[% IF td.0 OR td.1 %][% '(' _ td.0 _ ' - ' _ td.1 _ ')' %][% END %] |
29 |
</td> |
30 |
</tr> |
31 |
[% "</table>\n" IF loop.last %] |
32 |
[% END %] |
33 |
|