feat(export): improve export flow by using HTMX

This commit is contained in:
Herculino Trotta
2025-08-15 22:39:18 -03:00
parent b912a33b93
commit 7e3ed6cf94
3 changed files with 66 additions and 2 deletions
@@ -6,7 +6,7 @@
{% block body %}
<div class="container p-3">
<form method="post" action="{% url 'export_form' %}" id="export-form" class="show-loading px-1" _="on submit trigger hide_offcanvas" target="_blank">
<form hx-post="{% url 'export_form' %}" hx-ext="htmx-download" hx-swap="none" id="export-form" class="show-loading px-1" target="_blank">
{% crispy form %}
</form>
</div>