Ignore:
Timestamp:
07/28/12 09:20:21 (12 years ago)
Author:
nanardon
Message:

Use a generic filter to list objects

Location:
trunk/LATMOS-Accounts-Web/root/html/sites
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/sites/default.tt

    r996 r1081  
    44[% ELSE %] 
    55     
    6 [% INCLUDE 'sites/menu.tt' %] 
     6[% INCLUDE 'sites/object_header.tt' %] 
    77 
    88<div class="objectform" id="objectform"> 
  • trunk/LATMOS-Accounts-Web/root/html/sites/index.tt

    r971 r1081  
    1 [% db = c.model('Accounts').db %] 
    2 <!-- $Id --> 
    3 <div style="float: right" id="filter"> 
     1<!-- $Id$ --> 
     2<div id="filter"> 
    43[% INCLUDE 'includes/filter.tt' 
    54   formuri = c.uri_for() 
    6    otype = 'site' 
    75%] 
    86</div> 
    97 
    10 <table border="0"> 
    11 <tr><td colspan="2">[% siteslist.size %] Sites</td></tr> 
    12 <tr><th>Nom</th><th>Ville</th></tr> 
    13 [% FOREACH sitename = siteslist %] 
    14 [% site = db.get_object('site', sitename) %] 
    15 <tr> 
    16     <td>[% sitename | html %]</td> 
    17     <td> 
    18         [% site.get_c_field('l') | html %] 
    19     <a href="[% c.uri_for('/sites', sitename) %]"> 
    20         <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" 
    21             height="16" width="16" 
    22             alt="[% "edit " _ sitename | html %]"> 
    23     </a></td> 
    24 </tr> 
    25 [% END %] 
    26 </table> 
     8<div id="list_objects"> 
     9[% INCLUDE 'includes/list_objects.tt' %] 
     10</div> 
Note: See TracChangeset for help on using the changeset viewer.