source: trunk/LATMOS-Accounts-Web/root/html/admin/requests/index.tt @ 984

Last change on this file since 984 was 973, checked in by nanardon, 12 years ago
  • add message if there is no pending request
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1[% ids = \c.model('Accounts').db.list_requests %]
2
3[% IF ids.list.size %]
4
5[% FOREACH id = ids %]
6[% IF loop.first %]
7<h2>Requêtes en attentes:</h2>
8<table border=1>
9<tr>
10<th>Requêtes</th>
11<th>Objet</th>
12<th>Demandeur</th>
13<th>Date</th>
14</tr>
15[% END %]
16
17[% req = c.model('Accounts').db.get_datarequest(id) %]
18
19<tr>
20<td>
21<a href=[% c.uri_for(id) %]>
22[% req.accreq.get_attributes('description') || req.accreq.id | truncate(20) | html %]
23</a>
24</td>
25
26<td>
27[% oobject = req.oobject %]
28[% IF oobject %]
29[% dsn = oobject.get_attributes('displayName') %]
30[% IF dsn %]
31[% dsn | truncate(20) | html %]
32([% oobject.id | html %])
33[% ELSE %]
34[% oobject.id | html %]
35[% END %]
36[% END %]
37</td>
38
39<td>
40[% user = req.o_user %]
41[% IF user %]
42[% dsn = user.get_attributes('displayName') %]
43[% IF dsn %]
44[% dsn | truncate(20) | html %]
45([% user.id | html %])
46[% ELSE %]
47[% user.id | html %]
48[% END %]
49[% END %]
50</td>
51
52<td>
53[% req.apply | html %]
54[% IF req.due %]
55<span style="color: red">*</span>
56[% END %]
57</td>
58
59</tr>
60
61[% IF loop.last %]
62</table>
63[% END %]
64
65[% END %]
66
67[% ELSE %]
68
69<p>Pas de requêtes en attente.</p>
70
71[% END %]
Note: See TracBrowser for help on using the repository browser.