client
Last change
on this file since c968555 was
c968555,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Improve filtering by layer and area
|
-
Property mode set to
100644
|
File size:
2.1 KB
|
Line | |
---|
1 | {% extends "base.html" %} |
---|
2 | {% load misc %} |
---|
3 | |
---|
4 | {% block title %}Reporting{% endblock %} |
---|
5 | {% block content %} |
---|
6 | |
---|
7 | <h2>Reporting</h2> |
---|
8 | |
---|
9 | <h3>Parameters</h3> |
---|
10 | |
---|
11 | <form> |
---|
12 | <table class='pretty-table'> |
---|
13 | <tr> |
---|
14 | <th>Term</th> |
---|
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> |
---|
19 | </tr> |
---|
20 | <tr> |
---|
21 | <th>Budget Area</th> |
---|
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> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <th>Primary Axis</th> |
---|
35 | <td><select name='primary'> |
---|
36 | {% for slug, content in axes.items %}{% if content.2 %}<option {% ifequal primary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %} |
---|
37 | </select></td> |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <th>Secondary Axis</th> |
---|
41 | <td><select name='secondary'> |
---|
42 | {% for slug, content in axes.items %}{% if content.3 %}<option {% ifequal secondary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %} |
---|
43 | </select></td> |
---|
44 | </tr> |
---|
45 | <tr> |
---|
46 | <th colspan='2'><input type='submit' name='submit' value='Submit'></th> |
---|
47 | </tr> |
---|
48 | </table> |
---|
49 | |
---|
50 | <h3>Data</h3> |
---|
51 | |
---|
52 | <table class='pretty-table money-table'> |
---|
53 | <tr> |
---|
54 | <th></th> |
---|
55 | {% for label in secondary_labels %} |
---|
56 | <th>{{label}}</th> |
---|
57 | {% endfor %} |
---|
58 | </tr> |
---|
59 | {% for label, row in table_with_row_labels %} |
---|
60 | <tr> |
---|
61 | <th>{{label}}</th> |
---|
62 | {% for cell in row %} |
---|
63 | <td>{% if cell %}<strong>{% endif %}${{cell}}{% if cell %}</strong>{% endif %}</td> |
---|
64 | {% endfor %} |
---|
65 | </tr> |
---|
66 | {% endfor %} |
---|
67 | |
---|
68 | </table> |
---|
69 | |
---|
70 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.