Ignore:
Timestamp:
Mar 27, 2010, 3:34:11 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
ee37f93
Parents:
dd2c3d9
git-author:
Alex Dehnert <adehnert@…> (03/27/10 15:34:11)
git-committer:
Alex Dehnert <adehnert@…> (03/27/10 15:34:11)
Message:

WIP: Add form for selecting parameters

File:
1 edited

Legend:

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

    red4ccc7 r8a0d18c  
    99<h3>Parameters</h3>
    1010
     11<form>
    1112<table class='pretty-table'>
    1213<tr>
    1314    <th>Term</th>
    14     <td>{{term_name}}</td>
     15    <td><select name='term'>
     16    <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 %}
     18    </select></td>
    1519</tr>
    1620<tr>
    1721    <th>Budget Area</th>
    1822    <td>{{area}}</td>
     23</tr>
     24<tr>
     25    <th>Primary Axis</th>
     26    <td><select name='primary'>
     27    {% for slug, content in axes.items %}{% if content.2 %}<option {% ifequal primary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %}
     28    </select></td>
     29</tr>
     30<tr>
     31    <th>Secondary Axis</th>
     32    <td><select name='secondary'>
     33    {% for slug, content in axes.items %}{% if content.3 %}<option {% ifequal secondary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %}
     34    </select></td>
     35</tr>
     36<tr>
     37    <th colspan='2'><input type='submit' name='submit' value='Submit'></th>
    1938</tr>
    2039</table>
Note: See TracChangeset for help on using the changeset viewer.