source: trunk/LATMOS-Accounts-Web/root/html/users/my.tt @ 1211

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

display improvement

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<!-- $Id$ -->
2[% IF NOT user %]
3No user [% username | html %] found.
4[% ELSE %]
5
6[% INCLUDE 'users/object_header.tt' %]
7
8<div id="objectform" class="objectform">
9
10[% FOREACH reqid = db.list_request_by_object('user', username) %]
11[% IF loop.first %]
12<p>Requêtes de modification</p>
13<ul>
14[% END %]
15[% req = db.get_datarequest(reqid) %]
16[% req.accreq.get_attributes('description') || req.accreq.id |
17    truncate(20) | html %],
18[% req.apply | html %],
19[% user = req.o_user %]
20[% IF user %]
21[% dsn = user.get_attributes('displayName') %]
22[% IF dsn %]
23[% dsn | truncate(20) | html %]
24([% user.id | html %])
25[% ELSE %]
26[% user.id | html %]
27[% END %]
28[% END %]
29
30
31[% FOREACH attr = req.attributes %]
32[% IF loop.first %]
33<ul>
34[% END %]
35<li>[% attr | html %]: [% req.get_attributes(attr) | html %]</li>
36[% IF loop.last %]
37</ul>
38[% END %]
39[% END %]
40[% IF loop.last %]
41</ul>
42[% END %]
43[% END %]
44
45
46[% FOREACH reqid = db.list_requests_by_submitter(username) %]
47[% IF loop.first %]
48<p>Mes requêtes en attente</p>
49<table border=1>
50[% END %]
51[% req = db.get_datarequest(reqid) %]
52<tr>
53<td>
54[% req.accreq.get_attributes('description') || req.accreq.id |
55    truncate(20) | html %]
56</td>
57<td>
58[% req.apply | html %]
59</td>
60<td>
61[% obj = req.oobject %]
62[% obj.otype | html %]
63[% obj.get_attributes('displayName') | html %]
64</td>
65<td>
66</td>
67</tr>
68[% IF loop.last %]
69</table>
70[% END %]
71[% END %]
72
73
74[% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %]
75[% IF loop.first %]
76<p>Mes groupes</p>
77<table border=1>
78<tr>
79<th>Groupe:</th>
80<th>Desc.</th>
81</tr>
82[% END %]
83[% ogroup = db.get_object('group', h) %]
84<tr><td>
85<a href="[% c.uri_for('/groups', h) %]">[% h | html %]</a>
86</td>
87<td>
88[% ogroup.get_attributes('description') | truncate(30) | html %]
89</td>
90</tr>
91[% IF loop.last %]
92</table>
93[% END %]
94[% END %]
95
96[% FOREACH h = db.search_objects('user', 'manager=' _ username) %]
97[% IF loop.first %]
98<p>Personnels gérés</p>
99<table border=1>
100<tr>
101<th>Nom:</th>
102</tr>
103[% END %]
104[% ouser = db.get_object('user', h) %]
105<tr><td>
106<a href="[% c.uri_for('/users', h) %]">[% ouser.get_attributes('displayName') | html %]</a>
107[% INCLUDE user_flag ouser = ouser %]
108</td>
109</tr>
110[% IF loop.last %]
111</table>
112[% END %]
113[% END %]
114
115[% FOREACH h = db.search_objects('nethost', 'owner=' _ username) %]
116[% IF loop.first %]
117<p>Mes ordinateurs</p>
118<table border=1>
119<tr>
120<th>Nom:</th>
121<th>Description:</th>
122</tr>
123[% END %]
124[% ohost = db.get_object('nethost', h) %]
125<tr>
126<td>
127<a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a>
128</td>
129<td>
130[% ohost.get_attributes('description') | html %]
131</td>
132</tr>
133[% IF loop.last %]
134</table>
135[% END %]
136[% END %]
137
138</div>
139
140[% END %]
Note: See TracBrowser for help on using the repository browser.