django-admin2/djadmin2/templates/admin2/bootstrap/actions/delete_selected_confirmation.html
2013-06-24 11:25:42 -04:00

43 lines
1.3 KiB
HTML

{% extends "admin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block title %}Are you sure?{% endblock title %}
{% block page_title %}Are you sure?{% endblock page_title %}
{% block breadcrumbs %}
<li>
<a href="{% url "admin2:dashboard" %}">Home</a>
<span class="divider">/</span>
</li>
<li>
<a href="{% url "admin2:app_index" app_label=app_label %}">{{ app_label|title }}</a>
<span class="divider">/</span>
</li>
<li>
<a href="{% url view|admin2_urlname:"index" %}">{{ model_name_pluralized|title }}</a>
<span class="divider">/</span>
</li>
<li class="active">{% trans "Delete" %}</li>
{% endblock breadcrumbs %}
{% 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="DeleteSelectedAction" />
{% 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 %}