copyleftconf-website/pinaxcon/templates/registrasion/report.html

45 lines
839 B
HTML
Raw Normal View History

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 />
2016-09-03 03:51:21 +00:00
{% for report in reports %}
2016-12-07 07:05:28 +00:00
<div class="btn-group pull-right">
<a class="btn btn-default" href="{% report_as_csv forloop.counter0 %}">View as CSV</a>
</div>
2016-09-03 03:51:21 +00:00
<h3>{{ report.title }}</h3>
2016-12-07 07:05:28 +00:00
2016-09-03 03:51:21 +00:00
<table class="table table-striped">
2016-09-01 23:59:17 +00:00
<tr>
2016-09-03 03:51:21 +00:00
{% for heading in report.headings %}
<th>{{ heading }}</th>
2016-09-01 23:59:17 +00:00
{% endfor %}
</tr>
{% for line in report.rows %}
2016-09-03 03:51:21 +00:00
<tr>
{% for item in line %}
<td>
{{ item|safe }}
2016-09-03 03:51:21 +00:00
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endfor %}
2016-09-01 23:59:17 +00:00
{% endblock %}