Adds report HTML view
This commit is contained in:
parent
dc24e64d4f
commit
f0868a896b
1 changed files with 31 additions and 0 deletions
31
pinaxcon/templates/registrasion/report.html
Normal file
31
pinaxcon/templates/registrasion/report.html
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{% extends "site_base.html" %}
|
||||||
|
{% load bootstrap %}
|
||||||
|
{% load registrasion_tags %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
<h2>{{ title }}</h2>
|
||||||
|
|
||||||
|
<form method="GET">
|
||||||
|
{{ form | bootstrap}}
|
||||||
|
<br/>
|
||||||
|
<input type="submit">
|
||||||
|
</form>
|
||||||
|
<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 %}
|
||||||
|
<td>{{ item }}</td>
|
||||||
|
{% endfor %}
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue