mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-12 07:19:08 +00:00
inline deletion submit buttons on fragment
This commit is contained in:
@@ -20,7 +20,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}</p>
|
<p>{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}</p>
|
||||||
|
<div class="row gap">
|
||||||
<form
|
<form
|
||||||
|
style="margin-right: 0"
|
||||||
method="post"
|
method="post"
|
||||||
{% if is_fragment %}
|
{% if is_fragment %}
|
||||||
hx-action="{{ action }}"
|
hx-action="{{ action }}"
|
||||||
@@ -34,6 +36,7 @@
|
|||||||
<input type="submit" value="{% trans %}Confirm{% endtrans %}" />
|
<input type="submit" value="{% trans %}Confirm{% endtrans %}" />
|
||||||
</form>
|
</form>
|
||||||
<form
|
<form
|
||||||
|
style="margin-left: 0"
|
||||||
method="get"
|
method="get"
|
||||||
{% if is_fragment %}
|
{% if is_fragment %}
|
||||||
hx-action="{{ previous }}"
|
hx-action="{{ previous }}"
|
||||||
@@ -45,6 +48,7 @@
|
|||||||
>
|
>
|
||||||
<input type="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}" />
|
<input type="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}" />
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user