django-admin2/djadmin2/templates/admin2/bootstrap/delete_selected_confirmation.html
Ben Tappin 11f193ffc9 UI improvements when deleting objects.
Shows nested child objects that will be deleted when deleting a single object or multiple objects.

Includes some hacky tests for NestedObjects in the example app.
2013-05-29 12:38:32 +01:00

26 lines
837 B
HTML

{% extends "admin2/bootstrap/base.html" %}
{% load i18n %}
{% block title %}Are you sure?{% endblock %}
{% block page_title %}Are you sure?{% endblock %}
{% block content %}
<p>{% blocktrans with objects_name=objects_name %}Are you sure you want to delete the selected {{ objects_name }}? All of the following items will be deleted:{% endblocktrans %}</p>
<ul>
{{ deletable_objects|unordered_list }}
</ul>
<form method="post">
{% csrf_token %}
<input type="hidden" name="confirmed" value="yes" />
<input type="hidden" name="action" value="delete_selected" />
{% for item in queryset %}
<input type="hidden" name="selected_model_pk" value="{{ item.pk }}" />
{% endfor %}
<button class="btn btn-small btn-danger" type="submit">{% trans "Yes, I'm sure" %}</button>
</form>
{% endblock content %}