Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / delete_selected_confirmation.html @ 1a305335

History | View | Annotate | Download (1.94 KB)

1
{% extends "admin/base_site.html" %}
2
{% load i18n l10n %}
3
{% load url from future %}
4
{% load admin_urls %}
5

    
6
{% block breadcrumbs %}
7
<div class="breadcrumbs">
8
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
9
&rsaquo; <a href="{% url 'admin:app_list' app_label=app_label %}">{{ app_label|capfirst|escape }}</a>
10
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
11
&rsaquo; {% trans 'Delete multiple objects' %}
12
</div>
13
{% endblock %}
14

    
15
{% block content %}
16
{% if perms_lacking or protected %}
17
    {% if perms_lacking %}
18
        <p>{% blocktrans %}Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
19
        <ul>
20
        {% for obj in perms_lacking %}
21
            <li>{{ obj }}</li>
22
        {% endfor %}
23
        </ul>
24
    {% endif %}
25
    {% if protected %}
26
        <p>{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}</p>
27
        <ul>
28
        {% for obj in protected %}
29
            <li>{{ obj }}</li>
30
        {% endfor %}
31
        </ul>
32
    {% endif %}
33
{% else %}
34
    <p>{% blocktrans %}Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted:{% endblocktrans %}</p>
35
    {% for deletable_object in deletable_objects %}
36
        <ul>{{ deletable_object|unordered_list }}</ul>
37
    {% endfor %}
38
    <form action="" method="post">{% csrf_token %}
39
    <div>
40
    {% for obj in queryset %}
41
    <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
42
    {% endfor %}
43
    <input type="hidden" name="action" value="delete_selected" />
44
    <input type="hidden" name="post" value="yes" />
45
    <input type="submit" value="{% trans "Yes, I'm sure" %}" />
46
    </div>
47
    </form>
48
{% endif %}
49
{% endblock %}