Adds link to all reports.

This commit is contained in:
Christopher Neugebauer 2016-09-02 09:59:28 +10:00
parent f0868a896b
commit c8e21b8011
2 changed files with 28 additions and 0 deletions

View file

@ -164,6 +164,13 @@
to put this toward other purchases, or to refund it.</p>
{% endif %}
{% endif %}
{% if user.is_staff %}
<h4>Registration reports</h4>
<p><a href="{% url "reports_list" %}">View available reports</a>.
</p>
{% endif %}
</div>
</div>

View file

@ -0,0 +1,21 @@
{% extends "site_base.html" %}
{% load bootstrap %}
{% load registrasion_tags %}
{% block body %}
<h2>Registration reports</h2>
<table class="table table-striped">
{% for report in reports %}
<tr>
<td>
<a href="{{ report.url }}">{{ report.name }}</a>
</td>
<td>
{{ report.description }}
</td>
</tr>
{% endfor %}
</table>
{% endblock %}