Ignore:
Timestamp:
Mar 27, 2010, 5:03:53 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
193dfcd
Parents:
ae83758
git-author:
Alex Dehnert <adehnert@…> (03/27/10 17:03:53)
git-committer:
Alex Dehnert <adehnert@…> (03/27/10 17:03:53)
Message:

Improve filtering by layer and area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/remit_templates/finance_core/reporting.html

    r8a0d18c rc968555  
    1515    <td><select name='term'>
    1616    <option {% ifequal term_name "All" %}selected {% endifequal %}value='all'>All</option>
    17     {% for term_opt in term_options %}<option {% ifequal term_name term_opt.name %}selected {% endifequal %}value={{term_opt.slug}}>{{term_opt.name}}</option>{% endfor %}
     17    {% for term_opt in term_options %}<option {% ifequal term_name term_opt.name %}selected {% endifequal %}value='{{term_opt.slug}}'>{{term_opt.name}}</option>{% endfor %}
    1818    </select></td>
    1919</tr>
    2020<tr>
    2121    <th>Budget Area</th>
    22     <td>{{area}}</td>
     22    <td><select name='area'>
     23    {% for area_opt in area_options %}<option {%ifequal area area_opt %}selected {%endifequal%}value='{{area_opt.pk}}'>{{area_opt.indented_name}}</option>{%endfor%}
     24    </select></td>
     25</tr>
     26<tr>
     27    <th>Layer</th>
     28    <td><select name='layer'>
     29    <option {%ifequal layer "all"%}selected {%endifequal%}value='all'>All</option>
     30    {% for layer_opt in layer_options %}<option {%ifequal layer layer_opt %}selected {%endifequal%}value='{{layer_opt|layer_num}}'>{{layer_opt|layer_name}}</option>{%endfor%}
     31    </select></td>
    2332</tr>
    2433<tr>
Note: See TracChangeset for help on using the changeset viewer.