Changes to report.html
This commit is contained in:
parent
c8e21b8011
commit
b6222c5eba
1 changed files with 13 additions and 6 deletions
|
@ -6,11 +6,13 @@
|
||||||
|
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
|
|
||||||
|
{% if form %}
|
||||||
<form method="GET">
|
<form method="GET">
|
||||||
{{ form | bootstrap}}
|
{{ form | bootstrap}}
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit">
|
<input type="submit">
|
||||||
</form>
|
</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 %}
|
||||||
|
|
Loading…
Reference in a new issue