django-admin2/djadmin2/templates/admin2/bootstrap/actions/delete_selected_confirmation.html

27 lines
859 B
HTML
Raw Normal View History

2013-05-22 10:07:54 +00:00
{% extends "admin2/bootstrap/base.html" %}
2013-05-25 17:44:48 +00:00
{% load i18n %}
{% block title %}Are you sure?{% endblock title %}
{% block page_title %}Are you sure?{% endblock page_title %}
2013-05-22 10:07:54 +00:00
{% 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>
2013-05-22 10:07:54 +00:00
<ul>
{{ deletable_objects|unordered_list }}
2013-05-22 10:07:54 +00:00
</ul>
<form method="post">
{% csrf_token %}
<input type="hidden" name="confirmed" value="yes" />
<input type="hidden" name="action" value="DeleteSelectedAction" />
2013-05-22 10:07:54 +00:00
{% for item in queryset %}
<input type="hidden" name="selected_model_pk" value="{{ item.pk }}" />
2013-05-22 10:07:54 +00:00
{% endfor %}
<button class="btn btn-small btn-danger" type="submit">{% trans "Yes, I'm sure" %}</button>
2013-05-22 10:07:54 +00:00
</form>
{% endblock content %}