Changes to report.html

This commit is contained in:
Christopher Neugebauer 2016-09-02 11:06:46 +10:00
parent c8e21b8011
commit b6222c5eba

View file

@ -6,11 +6,13 @@
<h2>{{ title }}</h2>
<form method="GET">
{{ form | bootstrap}}
<br/>
<input type="submit">
</form>
{% if form %}
<form method="GET">
{{ form | bootstrap}}
<br/>
<input type="submit">
</form>
{% endif %}
<hr />
<table class="table table-striped">
@ -22,7 +24,12 @@
{% for line in report.data %}
<tr>
{% for item in line %}
<td>{{ item }}</td>
<td>
{% if report.link_view and forloop.counter0 == 0 %}
<a href="{% url report.link_view item %}">
{% endif %}
{{ item }}
</td>
{% endfor %}
</tr>
{% endfor %}