source: remit/remit_templates/finance_core/reporting.html @ d1692e8

client
Last change on this file since d1692e8 was d1692e8, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Finally completely punt the old-style annotate

  • Property mode set to 100644
File size: 2.2 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 colspan='2'>Limits</th>
15</tr>
16<tr>
17    <th>Term</th>
18    <td><select name='term'>
19    <option {% ifequal term_name "All" %}selected {% endifequal %}value='all'>All</option>
20    {% for term_opt in term_options %}<option {% ifequal term_name term_opt.name %}selected {% endifequal %}value='{{term_opt.slug}}'>{{term_opt.name}}</option>{% endfor %}
21    </select></td>
22</tr>
23<tr>
24    <th>Budget Area</th>
25    <td><select name='area'>
26    {% for area_opt in area_options %}<option {%ifequal area area_opt %}selected {%endifequal%}value='{{area_opt.pk}}'>{{area_opt.indented_name}}</option>{%endfor%}
27    </select></td>
28</tr>
29<tr>
30    <th>Layer</th>
31    <td><select name='layer'>
32    <option {%ifequal layer "all"%}selected {%endifequal%}value='all'>All</option>
33    {% for layer_opt in layer_options %}<option {%ifequal layer layer_opt %}selected {%endifequal%}value='{{layer_opt|layer_num}}'>{{layer_opt|layer_name}}</option>{%endfor%}
34    </select></td>
35</tr>
36<tr>
37    <th colspan='2'>Axes</th>
38</tr>
39<tr>
40    <th>Primary Axis</th>
41    <td><select name='primary'>
42    {% for slug, content in axes.items %}{% if content.3 %}<option {% ifequal primary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %}
43    </select></td>
44</tr>
45<tr>
46    <th>Secondary Axis</th>
47    <td><select name='secondary'>
48    {% for slug, content in axes.items %}{% if content.4 %}<option {% ifequal secondary_name content.0 %}selected {% endifequal %}value='{{slug}}'>{{content.0}}</option>{% endif %}{% endfor %}
49    </select></td>
50</tr>
51<tr>
52    <th colspan='2'><input type='submit' name='submit' value='Submit'></th>
53</tr>
54</table>
55
56<h3>Data</h3>
57
58<table class='pretty-table money-table'>
59<tr>
60    <th></th>
61{% for label in secondary_labels %}
62    <th>{{label}}</th>
63{% endfor %}
64</tr>
65{% for label, row in table_with_row_labels %}
66<tr>
67    <th>{{label}}</th>
68    {% for cell in row %}
69    <td>{% if cell %}<strong>{% endif %}${{cell}}{% if cell %}</strong>{% endif %}</td>
70    {% endfor %}
71</tr>
72{% endfor %}
73
74</table>
75
76{% endblock %}
Note: See TracBrowser for help on using the repository browser.