source: LATMOS-Accounts-Web/root/html/cells/index.tt @ 148

Last change on this file since 148 was 148, checked in by nanardon, 15 years ago
  • add department, cells, team
File size: 1.2 KB
Line 
1[% db = c.model('Accounts').db %]
2<!-- $Id -->
3<div style="float: right" id="filter">
4<p>Filtre:</p>
5<form action="[% c.uri_for() %]" method="POST">
6[% FOREACH item = [0, 1, 2 ] %]
7[% IF loop.first %]
8<table border="0">
9<tr><th>Champs</th><th>contient:</th></tr>
10[% END %]
11<tr>
12<td>
13<select name="attr">
14<option value=""></option>
15[% FOREACH f = db.list_canonical_fields('cell', 'r') %]
16<option value="[% f | html %]" [% ' selected="1"' IF c.req.params.attr.$item == f %]>
17    [% c.model('AttrForms').attr_label(f) | html %]
18</option>
19[% END %]
20</select>
21</td>
22<td><input type="text" name="attrval" value="[% c.req.params.attrval.$item | html %]"></td></tr>
23[% IF loop.last %]
24</table>
25[% END %]
26[% END %]
27
28<input type="submit">
29</form>
30</div>
31
32<table border="0">
33[% FOREACH cellname = cellslist %]
34[% cell = db.get_object('cell', cellname) %]
35<tr>
36    <td>[% cell.get_c_field('name') | html %]</td>
37    <td>
38        [% cell.get_c_field('l') | html %]
39    <a href="[% c.uri_for('/cells', cellname) %]">
40        <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]"
41            height="16" width="16"
42            alt="[% "edit " _ cellname | html %]">
43    </a></td>
44</tr>
45[% END %]
46</table>
Note: See TracBrowser for help on using the repository browser.