source: trunk/LATMOS-Accounts-Web/root/html/groups/dpmt.tt @ 1081

Last change on this file since 1081 was 1081, checked in by nanardon, 12 years ago

Use a generic filter to list objects

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1<!-- $Id$ -->
2[% IF NOT group %]
3No group [% groupname | html %] found.
4[% ELSE %]
5
6[% INCLUDE 'groups/object_header.tt' %]
7
8<div class="objectform" id="objectform">
9<div id="oform">
10
11<div style="margin: 2em; border: outset;">
12<form action="[% c.uri_for(groupname, 'dpmt') %]">
13<input id="inactive" type="checkbox" name="inactive" value="1" [% "checked" IF c.req.param('inactive') %]">
14<label for="inactive">Inclure les comptes inactifs</label><br>
15<input id="mail" type="checkbox" name="mail" value="1" [% "checked" IF c.req.param('mail') %]">
16<label for="mail">Afficher les mails</label><br>
17
18[% FOREACH co = c.model('Accounts').db.attributes_summary('user', 'company').sort %]
19[% IF loop.first %]
20Société:
21<select name="company">
22<option value="">--</option>
23[% END %]
24<option value="[% co | html %]" [% 'selected="selected"' IF co ==
25c.req.param('company') %]>[% co | html %]</option>
26[% IF loop.last %]
27</select>
28<br>
29[% END %]
30[% END %]
31
32<input type="submit">
33</form>
34[% IF odpmt.get_attributes('managedBy') %]
35[% ou = c.model('Accounts').db.get_object('user',
36odpmt.get_attributes('managedBy')) %]
37<p>Gestionnaire:
38    <a href="[% c.uri_for('/users', ou.id) %]">
39    [% ou.get_attributes('displayName') | html %]
40</a>
41</p>
42<p>[% user.size %] personnes dans ce département, [% guser.size %]
43associés.</p>
44[% END %]
45
46<hr>
47
48[% FOREACH u = user %]
49[% ou = c.model('Accounts').db.get_object('user', u) %]
50<a href="[% c.uri_for('/users', u) %]">[% ou.get_attributes('displayName') | html %]</a>
51[% IF c.req.param('mail') %]
52&lt;[% ou.get_attributes('mail') | html %]&gt;
53[% END %]
54<br>
55[% END %]
56
57<p>Associés au département</p>
58
59[% FOREACH u = guser %]
60[% ou = c.model('Accounts').db.get_object('user', u) %]
61<a href="[% c.uri_for('/users', u) %]">[% ou.get_attributes('displayName') | html %]</a>
62(<a href="[% c.uri_for('/groups', ou.get_attributes('department'), 'dpmt') %]">[%
63ou.get_attributes('department') %]</a>)
64[% IF c.req.param('mail') %]
65&lt;[% ou.get_attributes('mail') | html %]&gt;
66[% END %]
67<br>
68[% END %]
69</div>
70
71</div>
72</div>
73[% END %]
74
75
76
Note: See TracBrowser for help on using the repository browser.