root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / delete_confirmation.html @ 1a305335
History | View | Annotate | Download (1.85 KB)
1 |
{% extends "admin/base_site.html" %} |
---|---|
2 |
{% load i18n %} |
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 |
› <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst }}</a> |
10 |
› <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst|escape }}</a> |
11 |
› <a href="{% url opts|admin_urlname:'changelist' %}{{ object.pk }}">{{ object|truncatewords:"18" }}</a> |
12 |
› {% trans 'Delete' %}
|
13 |
</div>
|
14 |
{% endblock %} |
15 |
|
16 |
{% block content %} |
17 |
{% if perms_lacking or protected %} |
18 |
{% if perms_lacking %} |
19 |
<p>{% blocktrans with escaped_object=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> |
20 |
<ul>
|
21 |
{% for obj in perms_lacking %} |
22 |
<li>{{ obj }}</li> |
23 |
{% endfor %} |
24 |
</ul>
|
25 |
{% endif %} |
26 |
{% if protected %} |
27 |
<p>{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktrans %}</p> |
28 |
<ul>
|
29 |
{% for obj in protected %} |
30 |
<li>{{ obj }}</li> |
31 |
{% endfor %} |
32 |
</ul>
|
33 |
{% endif %} |
34 |
{% else %} |
35 |
<p>{% blocktrans with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p> |
36 |
<ul>{{ deleted_objects|unordered_list }}</ul> |
37 |
<form action="" method="post">{% csrf_token %} |
38 |
<div>
|
39 |
<input type="hidden" name="post" value="yes" /> |
40 |
<input type="submit" value="{% trans "Yes, I'm sure" %}" /> |
41 |
</div>
|
42 |
</form>
|
43 |
{% endif %} |
44 |
{% endblock %} |