Merge pull request #331

feat(export): improve export flow by using HTMX
This commit is contained in:
Herculino Trotta
2025-08-15 22:40:00 -03:00
committed by GitHub
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>
+1 -1
View File
@@ -261,7 +261,7 @@
</div>
{% endif %}
<div class="btn-group w-100" role="group">
<div class="btn-group w-100 sidebar-item" role="group">
<button type="button" class="btn btn-secondary btn-sm" data-bs-toggle="tooltip"
data-bs-title="{% trans "Calculator" %}"
_="on click trigger show on #calculator">