Show sectioned reports
This commit is contained in:
parent
b6222c5eba
commit
32340c9a98
1 changed files with 19 additions and 16 deletions
|
@ -15,24 +15,27 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<table class="table table-striped">
|
{% for report in reports %}
|
||||||
<tr>
|
<h3>{{ report.title }}</h3>
|
||||||
{% for heading in report.headings %}
|
<table class="table table-striped">
|
||||||
<th>{{ heading }}</th>
|
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
{% for line in report.data %}
|
|
||||||
<tr>
|
<tr>
|
||||||
{% for item in line %}
|
{% for heading in report.headings %}
|
||||||
<td>
|
<th>{{ heading }}</th>
|
||||||
{% if report.link_view and forloop.counter0 == 0 %}
|
|
||||||
<a href="{% url report.link_view item %}">
|
|
||||||
{% endif %}
|
|
||||||
{{ item }}
|
|
||||||
</td>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% for line in report.data %}
|
||||||
</table>
|
<tr>
|
||||||
|
{% for item in line %}
|
||||||
|
<td>
|
||||||
|
{% if report.link_view and forloop.counter0 == 0 %}
|
||||||
|
<a href="{% url report.link_view item %}">
|
||||||
|
{% endif %}
|
||||||
|
{{ item }}
|
||||||
|
</td>
|
||||||
|
{% endfor %}
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue