form_actions block on delete confirmation template

This commit is contained in:
Ales (Shagi) Zabala Alava 2022-02-01 09:54:33 +01:00
parent 1d300c0b71
commit 81a4473c5b
1 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,9 @@
{% endif %} {% endif %}
<form method="post" action=".">{% csrf_token %} <form method="post" action=".">{% csrf_token %}
<button type="submit">{% trans 'Delete' %}</button> {% block form_actions %}
<a href="{{ cancel_url }}">{% trans 'Cancel' %}</a> <button type="submit">{% trans 'Delete' %}</button>
<a href="{{ cancel_url }}">{% trans 'Cancel' %}</a>
{% endblock %}
</form> </form>
{% endblock %} {% endblock %}