2016-09-01 23:59:17 +00:00
|
|
|
{% extends "site_base.html" %}
|
|
|
|
{% load bootstrap %}
|
|
|
|
{% load registrasion_tags %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
|
|
|
<h2>{{ title }}</h2>
|
|
|
|
|
2016-09-02 01:06:46 +00:00
|
|
|
{% if form %}
|
|
|
|
<form method="GET">
|
|
|
|
{{ form | bootstrap}}
|
|
|
|
<br/>
|
|
|
|
<input type="submit">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2016-09-01 23:59:17 +00:00
|
|
|
<hr />
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
{% for heading in report.headings %}
|
|
|
|
<th>{{ heading }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for line in report.data %}
|
|
|
|
<tr>
|
|
|
|
{% for item in line %}
|
2016-09-02 01:06:46 +00:00
|
|
|
<td>
|
|
|
|
{% if report.link_view and forloop.counter0 == 0 %}
|
|
|
|
<a href="{% url report.link_view item %}">
|
|
|
|
{% endif %}
|
|
|
|
{{ item }}
|
|
|
|
</td>
|
2016-09-01 23:59:17 +00:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock %}
|