Ticket #2383: deletelist_confirmation.html

File deletelist_confirmation.html, 1.5 KB (added by atlithorn, 18 years ago)

template to allow for confirmation of deletion

Line 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3{% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
4{% block breadcrumbs %}
5<div class="breadcrumbs">
6 <a href="../../../">{% trans "Home" %}</a> &rsaquo;
7 <a href="../">{{ opts.verbose_name_plural|capfirst|escape }}</a> &rsaquo;
8 {% trans 'Delete' %}
9</div>
10{% endblock %}
11{% block content %}
12{% if perms_lacking %}
13 <p>{% blocktrans with object|escape as escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
14 <ul>
15 {% for obj in perms_lacking %}
16 <li>{{ obj|escape }}</li>
17 {% endfor %}
18 </ul>
19{% else %}
20 <form action="" method="post">
21 {% for object in daobjects%}
22 <p>{% blocktrans with object|escape as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>
23 <ul>{{ object.deleted_objects|unordered_list }}</ul>
24 <div>
25 <input type="hidden" name="{{object.deleteid}}" value="on">
26 {%endfor%}
27 <input type="hidden" name="doit" value="yes" />
28 <input type="submit" value="{% trans "Yes, I'm sure" %}" />
29 </div>
30 </form>
31{% endif %}
32{% endblock %}
Back to Top