client
Last change
on this file since 8a0d18c was
8a0d18c,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
WIP: Add form for selecting parameters
|
-
Property mode set to
100644
|
File size:
1.6 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>{{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> |
---|
38 | </tr> |
---|
39 | </table> |
---|
40 | |
---|
41 | <h3>Data</h3> |
---|
42 | |
---|
43 | <table class='pretty-table money-table'> |
---|
44 | <tr> |
---|
45 | <th></th> |
---|
46 | {% for label in secondary_labels %} |
---|
47 | <th>{{label}}</th> |
---|
48 | {% endfor %} |
---|
49 | </tr> |
---|
50 | {% for label, row in table_with_row_labels %} |
---|
51 | <tr> |
---|
52 | <th>{{label}}</th> |
---|
53 | {% for cell in row %} |
---|
54 | <td>{% if cell %}<strong>{% endif %}${{cell}}{% if cell %}</strong>{% endif %}</td> |
---|
55 | {% endfor %} |
---|
56 | </tr> |
---|
57 | {% endfor %} |
---|
58 | |
---|
59 | </table> |
---|
60 | |
---|
61 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.