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

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

review web apparence

  • Property svn:keywords set to Id
File size: 1.4 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(<a href="[% c.uri_for('/', c.forward('/obj_to_uri', [ oobject.type ]), oobject.id) %]">
33[%- oobject.id | html -%]
34</a>)
35[%- ELSE -%]
36<a href="[% c.uri_for('/', c.forward('/obj_to_uri', [ oobject.type ]), oobject.id) %]">
37[%- oobject.id | html -%]
38</a>
39[%- END -%]
40</a>
41[% END %]
42</td>
43
44<td>
45[% user = req.o_user %]
46[% IF user %]
47[% dsn = user.get_attributes('displayName') %]
48[% IF dsn %]
49[% dsn | truncate(20) | html %]
50(<a href="[% c.uri_for('/users', user.id) %]">
51[%- user.id | html -%]
52</a>)
53[% ELSE %]
54[% user.id | html %]
55[% END %]
56[% END %]
57</td>
58
59<td>
60[% IF req.due %]
61<span style="color: red">
62[% ELSE %]
63<span>
64[% END %]
65[% req.apply | html %]
66</span>
67[% IF req.automated %]
68<span style="color: blue">A</span>
69[% END %]
70</td>
71
72</tr>
73
74[% IF loop.last %]
75</table>
76[% END %]
77
78[% END %]
79
80[% ELSE %]
81
82<p>Pas de requêtes en attente.</p>
83
84[% END %]
Note: See TracBrowser for help on using the repository browser.