Last change
on this file since 861 was
861,
checked in by nanardon, 12 years ago
|
- reimport missing files from previous svn
|
File size:
1.2 KB
|
Line | |
---|
1 | <!-- $Id: my.tt 7943 2011-11-10 15:33:13Z nanardon $ --> |
---|
2 | [% IF NOT user %] |
---|
3 | No user [% username | html %] found. |
---|
4 | [% ELSE %] |
---|
5 | |
---|
6 | <div id="objectform" class="objectform"> |
---|
7 | [% INCLUDE 'users/menu.tt' %] |
---|
8 | |
---|
9 | [% INCLUDE 'includes/form.tt' |
---|
10 | form = form |
---|
11 | form_uri = c.uri_for(username, subform) %] |
---|
12 | |
---|
13 | <div class="oform"> |
---|
14 | <table border="1"> |
---|
15 | <tr> |
---|
16 | |
---|
17 | [% FOREACH h = db.search_objects('nethost', 'owner=' _ username) %] |
---|
18 | [% IF loop.first %] |
---|
19 | <td> |
---|
20 | <p>Mes ordinateurs</p> |
---|
21 | <ul> |
---|
22 | [% END %] |
---|
23 | <li><a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a></li> |
---|
24 | [% IF loop.last %] |
---|
25 | </ul> |
---|
26 | </td> |
---|
27 | </div> |
---|
28 | [% END %] |
---|
29 | [% END %] |
---|
30 | |
---|
31 | [% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] |
---|
32 | [% IF loop.first %] |
---|
33 | <td> |
---|
34 | <p>Mes groupes</p> |
---|
35 | <ul> |
---|
36 | [% END %] |
---|
37 | <li><a href="[% c.uri_for('/groups', h) %]">[% h | html %]</a></li> |
---|
38 | [% IF loop.last %] |
---|
39 | </ul> |
---|
40 | </td> |
---|
41 | </div> |
---|
42 | [% END %] |
---|
43 | [% END %] |
---|
44 | |
---|
45 | [% FOREACH h = db.search_objects('user', 'manager=' _ username) %] |
---|
46 | [% IF loop.first %] |
---|
47 | <td> |
---|
48 | <p>Personnels gérés</p> |
---|
49 | <ul> |
---|
50 | [% END %] |
---|
51 | [% ouser = db.get_object('user', h) %] |
---|
52 | <li> |
---|
53 | <a href="[% c.uri_for('/users', h) %]">[% ouser.get_attributes('displayName') | html %]</a> |
---|
54 | [% INCLUDE user_flag ouser = ouser %] |
---|
55 | </li> |
---|
56 | [% IF loop.last %] |
---|
57 | </ul> |
---|
58 | </td> |
---|
59 | </div> |
---|
60 | [% END %] |
---|
61 | [% END %] |
---|
62 | |
---|
63 | </tr> |
---|
64 | </table> |
---|
65 | </div> |
---|
66 | |
---|
67 | [% END %] |
---|
Note: See
TracBrowser
for help on using the repository browser.