Changeset 238


Ignore:
Timestamp:
06/07/09 11:41:31 (15 years ago)
Author:
nanardon
Message:
  • improve filter form
Location:
LATMOS-Accounts-Web
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/includes/filter.tt

    r225 r238  
    11<!-- $Id$ --> 
     2[% ofilter = c.model('AttrFilter', otype) %] 
     3<div id="filter"> 
    24<p>Filtre:</p> 
    35<form action="[% c.action.namespace %]" method="POST"> 
    46<input type="hidden" name="otype" value="[% otype | html %]"> 
    5 [% FOREACH item = [0, 1, 2 ] %] 
     7[% FOREACH item = ofilter.count_field %] 
    68[% IF loop.first %] 
    79<table border="0"> 
     
    1012<tr> 
    1113<td> 
    12 <select name="attr"> 
    13 <option value=""></option> 
    14 [% FOREACH f = db.list_canonical_fields(otype, 'r') %] 
    15 <option value="[% f | html %]" [% ' selected="1"' IF filter.attr.$item == f %]> 
    16     [% c.model('AttrForms').attr_label(f) | html %] 
    17 </option> 
    18 [% END %] 
    19 </select> 
     14[% ofilter.search_field(item) %] 
    2015</td> 
    21 <td><input type="text" name="attrval" value="[% filter.attrval.$item | html %]"></td></tr> 
     16<td>[% ofilter.val_field(item) %]</td></tr> 
    2217[% IF loop.last %] 
    2318</table> 
     
    2722<input type="submit"> 
    2823</form> 
     24</div> 
  • LATMOS-Accounts-Web/root/static/style.css

    r214 r238  
    8181    margin-right: 20%; 
    8282} 
     83 
     84#filter div { 
     85    border-style: inset; 
     86    margin-top: 0.5em; 
     87    padding: 0.5em; 
     88} 
Note: See TracChangeset for help on using the changeset viewer.