41 lines
839 B
HTML
41 lines
839 B
HTML
{% extends "site_base.html" %}
|
|
{% load bootstrap %}
|
|
{% load registrasion_tags %}
|
|
|
|
{% block body %}
|
|
|
|
<h2>{{ title }}</h2>
|
|
|
|
{% if form %}
|
|
<form method="GET">
|
|
{{ form | bootstrap}}
|
|
<br/>
|
|
<input type="submit">
|
|
</form>
|
|
{% endif %}
|
|
<hr />
|
|
|
|
{% for report in reports %}
|
|
<h3>{{ report.title }}</h3>
|
|
<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 %}
|
|
<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 %}
|