Files
@ 286304157d27
Branch filter:
Location: copyleftconf-website-fork/pinaxcon/templates/registrasion/report.html - annotation
286304157d27
839 B
text/html
Adds view as CSV button.
f0868a896be6 f0868a896be6 f0868a896be6 f0868a896be6 f0868a896be6 f0868a896be6 f0868a896be6 f0868a896be6 b6222c5eba3a b6222c5eba3a b6222c5eba3a b6222c5eba3a b6222c5eba3a b6222c5eba3a b6222c5eba3a f0868a896be6 f0868a896be6 32340c9a9834 286304157d27 286304157d27 286304157d27 286304157d27 286304157d27 32340c9a9834 286304157d27 32340c9a9834 f0868a896be6 32340c9a9834 32340c9a9834 f0868a896be6 f0868a896be6 9b888ab4c94f 32340c9a9834 32340c9a9834 32340c9a9834 9b888ab4c94f 32340c9a9834 32340c9a9834 32340c9a9834 32340c9a9834 32340c9a9834 32340c9a9834 f0868a896be6 f0868a896be6 | {% 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 %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{% report_as_csv forloop.counter0 %}">View as CSV</a>
</div>
<h3>{{ report.title }}</h3>
<table class="table table-striped">
<tr>
{% for heading in report.headings %}
<th>{{ heading }}</th>
{% endfor %}
</tr>
{% for line in report.rows %}
<tr>
{% for item in line %}
<td>
{{ item|safe }}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endfor %}
{% endblock %}
|