source: LATMOS-Accounts-Web/root/html/users/groups.tt @ 492

Last change on this file since 492 was 492, checked in by nanardon, 15 years ago
  • fix page presentation
  • Property svn:keywords set to Id Rev
File size: 1.2 KB
Line 
1<!-- $Id$ -->
2[% IF NOT user %]
3No user [% username | html %] found.
4[% ELSE %]
5   
6<div id="objectform" class="objectform">
7[% INCLUDE 'users/menu.tt' %]
8
9[% modallow = c.model('Accounts').db.check_acl(user, 'memberOf', 'w') %]
10
11<div id="oform">
12<table border="1">
13<tr>
14<th>Membre de:</th>
15<th>Autres groupes</th>
16</tr>
17<tr>
18<td valign="TOP">
19[% FOREACH g = user.get_c_field('memberOf') %]
20[% IF modallow %]
21<form action="[% c.uri_for(username, subform) %]" method="POST">
22<input type="hidden" name="delgroup" value="[% g | html %]">
23<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24">
24[% END %]
25<a href="[% c.uri_for('/groups', g) %]">[% g | html %]</a><br>
26[% IF modallow %]
27</form>
28[% END %]
29[% END %]
30</td>
31<td valign="TOP">
32[% FOREACH g = othergroups %]
33[% IF modallow %]
34<form action="[% c.uri_for(username, subform) %]" method="POST">
35<input type="hidden" name="addgroup" value="[% g | html %]">
36<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-new.png') %]" width="24" height="24">
37[% END %]
38<a href="[% c.uri_for('/groups', g) %]">[% g | html %]</a><br>
39[% IF modallow %]
40</form>
41[% END %]
42[% END %]
43</td>
44</tr>
45</table>
46
47</div>
48</div>
49[% END %]
Note: See TracBrowser for help on using the repository browser.