1 | <!-- $Id$ --> |
---|
2 | [% IF NOT user %] |
---|
3 | No user [% username | html %] found. |
---|
4 | [% ELSE %] |
---|
5 | |
---|
6 | [% INCLUDE 'users/object_header.tt' %] |
---|
7 | |
---|
8 | <div id="objectform" class="objectform"> |
---|
9 | [% db = c.model('Accounts').db %] |
---|
10 | |
---|
11 | [% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] |
---|
12 | [% IF loop.first %] |
---|
13 | <p>Mes groupes</p> |
---|
14 | <table border=1> |
---|
15 | <tr> |
---|
16 | <th>Groupe:</th> |
---|
17 | <th>Desc.</th> |
---|
18 | </tr> |
---|
19 | [% END %] |
---|
20 | [% ogroup = db.get_object('group', h) %] |
---|
21 | <tr><td> |
---|
22 | <a href="[% c.uri_for('/groups', h) %]">[% h | html %]</a> |
---|
23 | </td> |
---|
24 | <td> |
---|
25 | [% ogroup.get_attributes('description') | truncate(30) | html %] |
---|
26 | </td> |
---|
27 | </tr> |
---|
28 | [% IF loop.last %] |
---|
29 | </table> |
---|
30 | [% END %] |
---|
31 | [% END %] |
---|
32 | |
---|
33 | [% FOREACH h = db.search_objects('user', 'manager=' _ username) %] |
---|
34 | [% IF loop.first %] |
---|
35 | <p>Personnels gérés</p> |
---|
36 | <table border=1> |
---|
37 | <tr> |
---|
38 | <th>Nom:</th> |
---|
39 | </tr> |
---|
40 | [% END %] |
---|
41 | [% ouser = db.get_object('user', h) %] |
---|
42 | <tr><td> |
---|
43 | <a href="[% c.uri_for('/users', h) %]">[% ouser.get_attributes('displayName') | html %]</a> |
---|
44 | [% INCLUDE user_flag ouser = ouser %] |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | [% IF loop.last %] |
---|
48 | </table> |
---|
49 | [% END %] |
---|
50 | [% END %] |
---|
51 | |
---|
52 | [% FOREACH h = db.search_objects('nethost', 'owner=' _ username) %] |
---|
53 | [% IF loop.first %] |
---|
54 | <p>Mes ordinateurs</p> |
---|
55 | <table border=1> |
---|
56 | <tr> |
---|
57 | <th>Nom:</th> |
---|
58 | <th>Description:</th> |
---|
59 | <th>Utilisateur:</th> |
---|
60 | <th>Fin de garantie:</th> |
---|
61 | </tr> |
---|
62 | [% END %] |
---|
63 | [% ohost = db.get_object('nethost', h) %] |
---|
64 | <tr> |
---|
65 | <td> |
---|
66 | <a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a> |
---|
67 | </td> |
---|
68 | <td> |
---|
69 | [% ohost.get_attributes('description') | html %] |
---|
70 | </td> |
---|
71 | <td> |
---|
72 | [% hostuser = ohost.get_attributes('user') %] |
---|
73 | <a href="[% c.uri_for('/users', hostuser, 'my') %]">[% hostuser | html %]</a> |
---|
74 | </td> |
---|
75 | <td> |
---|
76 | [% ohost.get_attributes('endOfWarranty') | html %] |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | [% IF loop.last %] |
---|
80 | </table> |
---|
81 | [% END %] |
---|
82 | [% END %] |
---|
83 | |
---|
84 | [% FOREACH h = db.search_objects('nethost', 'user=' _ username) %] |
---|
85 | [% IF loop.first %] |
---|
86 | <p>Ordinateurs que j'utilise</p> |
---|
87 | <table border=1> |
---|
88 | <tr> |
---|
89 | <th>Nom:</th> |
---|
90 | <th>Description:</th> |
---|
91 | <th>Propriétaire:</th> |
---|
92 | <th>Fin de garantie:</th> |
---|
93 | </tr> |
---|
94 | [% END %] |
---|
95 | [% ohost = db.get_object('nethost', h) %] |
---|
96 | <tr> |
---|
97 | <td> |
---|
98 | <a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a> |
---|
99 | </td> |
---|
100 | <td> |
---|
101 | [% ohost.get_attributes('description') | html %] |
---|
102 | </td> |
---|
103 | <td> |
---|
104 | [% hostuser = ohost.get_attributes('owner') %] |
---|
105 | <a href="[% c.uri_for('/users', hostuser, 'my') %]">[% hostuser | html %]</a> |
---|
106 | </td> |
---|
107 | <td> |
---|
108 | [% ohost.get_attributes('endOfWarranty') | html %] |
---|
109 | </td> |
---|
110 | </tr> |
---|
111 | [% IF loop.last %] |
---|
112 | </table> |
---|
113 | [% END %] |
---|
114 | [% END %] |
---|
115 | </div> |
---|
116 | |
---|
117 | [% END %] |
---|