Compare commits

..

2 Commits

Author SHA1 Message Date
8317ae83c2 doorcontrol: Use django-tables2 for access reports
All checks were successful
Ruff / ruff (push) Successful in 23s
2024-01-24 00:03:57 -05:00
bfe9fc7c2c membershipworks: Add download buttons for event reports 2024-01-24 00:03:57 -05:00

View File

@ -0,0 +1,17 @@
{% load export_url from django_tables2 %}
<div class="dropdown">
<button class="btn btn-sm btn-secondary dropdown-toggle"
type="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<i class="bi bi-download"></i> Download
</button>
<ul class="dropdown-menu">
{% for format in view.export_formats %}
<li>
<a class="dropdown-item" href="{% export_url format %}">{{ format }}</a>
</li>
{% endfor %}
</ul>
</div>