cmsmanage/templates/cmsmanage/components/download_table.dj.html

18 lines
483 B
HTML
Raw Normal View History

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