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 %}
|
||||
<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 %}
|
||||
|
|
Loading…
Reference in a new issue