{% load list_tags %} {% comment %} Export dropdown — offers XLSX (Excel) + CSV downloads of the current list URL, preserving filters + sort. Pair with views that use `apps.core.lists.CsvExportMixin`. Args: disabled (bool|None) — render greyed-out non-button when queryset empty label_override (str|None) — replace "Export" with custom label size (str|None) — "lg" matches .btn-secondary sizing for use in a page-header action row; default is the compact size meant for list_toolbar.html's search row. {% endcomment %} {% if disabled %} {{ label_override|default:"Export" }} {% else %}
{% endif %}