Last change
on this file since 1346 was
1346,
checked in by nanardon, 9 years ago
|
Add some attribute to service, fixe services definition for other objects
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Line | |
---|
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 | |
---|
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 | </tr> |
---|
60 | [% END %] |
---|
61 | [% ohost = db.get_object('nethost', h) %] |
---|
62 | <tr> |
---|
63 | <td> |
---|
64 | <a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a> |
---|
65 | </td> |
---|
66 | <td> |
---|
67 | [% ohost.get_attributes('description') | html %] |
---|
68 | </td> |
---|
69 | </tr> |
---|
70 | [% IF loop.last %] |
---|
71 | </table> |
---|
72 | [% END %] |
---|
73 | [% END %] |
---|
74 | |
---|
75 | </div> |
---|
76 | |
---|
77 | [% END %] |
---|
Note: See
TracBrowser
for help on using the repository browser.