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
|
Rev | Line | |
---|
[971] | 1 | <!-- $Id$ --> |
---|
[861] | 2 | [% IF NOT user %] |
---|
| 3 | No user [% username | html %] found. |
---|
| 4 | [% ELSE %] |
---|
| 5 | |
---|
[1081] | 6 | [% INCLUDE 'users/object_header.tt' %] |
---|
[861] | 7 | |
---|
[976] | 8 | <div id="objectform" class="objectform"> |
---|
[861] | 9 | |
---|
[1094] | 10 | |
---|
[927] | 11 | [% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] |
---|
[861] | 12 | [% IF loop.first %] |
---|
[927] | 13 | <p>Mes groupes</p> |
---|
| 14 | <table border=1> |
---|
| 15 | <tr> |
---|
| 16 | <th>Groupe:</th> |
---|
| 17 | <th>Desc.</th> |
---|
| 18 | </tr> |
---|
[861] | 19 | [% END %] |
---|
[927] | 20 | [% ogroup = db.get_object('group', h) %] |
---|
| 21 | <tr><td> |
---|
| 22 | <a href="[% c.uri_for('/groups', h) %]">[% h | html %]</a> |
---|
[861] | 23 | </td> |
---|
| 24 | <td> |
---|
[927] | 25 | [% ogroup.get_attributes('description') | truncate(30) | html %] |
---|
| 26 | </td> |
---|
[1094] | 27 | </tr> |
---|
[861] | 28 | [% IF loop.last %] |
---|
[927] | 29 | </table> |
---|
[861] | 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> |
---|
[927] | 36 | <table border=1> |
---|
| 37 | <tr> |
---|
| 38 | <th>Nom:</th> |
---|
| 39 | </tr> |
---|
[861] | 40 | [% END %] |
---|
| 41 | [% ouser = db.get_object('user', h) %] |
---|
[927] | 42 | <tr><td> |
---|
[861] | 43 | <a href="[% c.uri_for('/users', h) %]">[% ouser.get_attributes('displayName') | html %]</a> |
---|
| 44 | [% INCLUDE user_flag ouser = ouser %] |
---|
[927] | 45 | </td> |
---|
[1094] | 46 | </tr> |
---|
[861] | 47 | [% IF loop.last %] |
---|
[927] | 48 | </table> |
---|
[861] | 49 | [% END %] |
---|
| 50 | [% END %] |
---|
| 51 | |
---|
[927] | 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> |
---|
[1094] | 58 | <th>Description:</th> |
---|
[861] | 59 | </tr> |
---|
[927] | 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> |
---|
[1094] | 67 | [% ohost.get_attributes('description') | html %] |
---|
[927] | 68 | </td> |
---|
| 69 | </tr> |
---|
| 70 | [% IF loop.last %] |
---|
[861] | 71 | </table> |
---|
[927] | 72 | [% END %] |
---|
| 73 | [% END %] |
---|
| 74 | |
---|
[861] | 75 | </div> |
---|
| 76 | |
---|
| 77 | [% END %] |
---|
Note: See
TracBrowser
for help on using the repository browser.