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> <h2>{{ title }}</h2>
<form method="GET"> {% if form %}
{{ form | bootstrap}} <form method="GET">
<br/> {{ form | bootstrap}}
<input type="submit"> <br/>
</form> <input type="submit">
</form>
{% endif %}
<hr /> <hr />
<table class="table table-striped"> <table class="table table-striped">
@ -22,7 +24,12 @@
{% for line in report.data %} {% for line in report.data %}
<tr> <tr>
{% for item in line %} {% 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 %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}