improve delete confirm
This commit is contained in:
parent
8c850c61fb
commit
ad8654de80
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@
|
|||
{% include 'editor/fragment_levels.html' %}
|
||||
|
||||
<h3>{% blocktrans %}Delete {{ model_title }}{% endblocktrans %}</h3>
|
||||
<form action="{{ path }}" method="post">
|
||||
<form action="{{ request.path }}" data-keep-geometry method="post">
|
||||
{% csrf_token %}
|
||||
<p>{% blocktrans %}Please confirm deleting: {{ obj_title }}{% endblocktrans %}</p>
|
||||
<input type="hidden" name="delete" value="1">
|
||||
<input type="hidden" name="pk" value="{{ pk }}">
|
||||
{% buttons %}
|
||||
<button class="invisiblesubmit" type="submit"></button>
|
||||
<a class="btn btn-default" href="{{ path }}">
|
||||
<a class="btn btn-default" href="{{ request.path }}">
|
||||
{% trans 'Cancel' %}
|
||||
</a>
|
||||
<button type="submit" name="delete_confirm" value="1" class="btn btn-danger pull-right" data-reload-geometries>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue