inline deletion submit buttons on fragment

This commit is contained in:
imperosol
2026-09-10 13:36:45 +02:00
parent db44e4bd02
commit d4187b7435
@@ -20,7 +20,9 @@
{% endif %}
<p>{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}</p>
<div class="row gap">
<form
style="margin-right: 0"
method="post"
{% if is_fragment %}
hx-action="{{ action }}"
@@ -34,6 +36,7 @@
<input type="submit" value="{% trans %}Confirm{% endtrans %}" />
</form>
<form
style="margin-left: 0"
method="get"
{% if is_fragment %}
hx-action="{{ previous }}"
@@ -45,6 +48,7 @@
>
<input type="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}" />
</form>
</div>
{% endblock %}