cmsmanage/templates/cmsmanage/components/download_table.dj.html
Adam Goldsmith 5f59aac67e
All checks were successful
Ruff / ruff (push) Successful in 23s
Use more generic location for table download component
2024-01-24 00:20:12 -05:00

18 lines
483 B
HTML

{% 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>