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('site', '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 sitename = siteslist %] |
---|
34 | [% site = db.get_object('site', sitename) %] |
---|
35 | <tr> |
---|
36 | <td>[% site.get_c_field('name') | html %]</td> |
---|
37 | <td> |
---|
38 | [% site.get_c_field('l') | html %] |
---|
39 | <a href="[% c.uri_for('/sites', sitename) %]"> |
---|
40 | <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" |
---|
41 | height="16" width="16" |
---|
42 | alt="[% "edit " _ sitename | html %]"> |
---|
43 | </a></td> |
---|
44 | </tr> |
---|
45 | [% END %] |
---|
46 | </table> |
---|
Note: See
TracBrowser
for help on using the repository browser.