source: trunk/LATMOS-Accounts-Web/root/html/includes/list_objects.tt @ 1162

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

fix conflict

File size: 1.3 KB
Line 
1
2[% objectslist = ofilter.objectslist %]
3[% IF objectslist.size > 20 %]
4
5[% FOREACH initial = ofilter.initials %]
6[% IF c.req.param('start') == initial %]
7< [% initial %] >
8[% ELSE %]
9[% ofilter.uparams.start = initial %]
10<a href="[% c.uri_for('/' _ c.forward('/obj_to_uri', [ ofilter.otype ]), ofilter.uparams) %]">[% initial %]</a>
11[% END %]
12[% END %]
13
14[% END %]
15
16[% otype = ofilter.otype %]
17[% attrs = c.config.objects.$otype.list %]
18[% IF NOT attrs %][% attrs = [ 'cn' ] %][% END %]
19
20<table border=0>
21<tr>
22<td></td>
23<th>Nom</th>
24[% FOREACH attr = attrs %]
25<th>[% attr | html %]</th>
26[% END %]
27</tr>
28
29[% IF c.req.param('start') %]
30[% objectslist = ofilter.sublist %]
31[% END %]
32
33[% IF objectslist.size < 20 OR c.req.param('start') %]
34[% FOREACH name = objectslist %]
35[% object = c.model('Accounts').db.get_object(ofilter.otype, name) %]
36<tr>
37    <td>
38    [% INCLUDE object_flag object = object %]
39    </td>
40    <td><a href="[% c.uri_for('/' _ c.forward('/obj_to_uri', [ ofilter.otype ]), object.id) %]">
41        <img src="[% c.uri_for('/static', 'images', 'icon_edit.png') %]"
42            class="editobj"
43            alt="[% "edit " _ object.id | html %]"></a>
44    [% object.id | html %]</td>
45
46[% FOREACH attr = attrs %]
47<td>[% object.get_attributes(attr) | html %]</td>
48[% END %]
49</tr>
50[% END %]
51[% END %]
52
53</table>
54
Note: See TracBrowser for help on using the repository browser.