Show sectioned reports

This commit is contained in:
Christopher Neugebauer 2016-09-03 13:51:21 +10:00
parent b6222c5eba
commit 32340c9a98

View file

@ -15,24 +15,27 @@
{% endif %}
<hr />
<table class="table table-striped">
<tr>
{% for heading in report.headings %}
<th>{{ heading }}</th>
{% endfor %}
</tr>
{% for line in report.data %}
{% for report in reports %}
<h3>{{ report.title }}</h3>
<table class="table table-striped">
<tr>
{% for item in line %}
<td>
{% if report.link_view and forloop.counter0 == 0 %}
<a href="{% url report.link_view item %}">
{% endif %}
{{ item }}
</td>
{% for heading in report.headings %}
<th>{{ heading }}</th>
{% endfor %}
</tr>
{% endfor %}
</table>
{% for line in report.data %}
<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 %}