blob: c8a1be1fd714c72e4318f9807cad27d1df0b6aab [file] [log] [blame]
Tony Macke4db7b62014-08-13 12:59:31 -04001{% extends "admin/base_site.html" %}
2{% load i18n %}
3{% load admin_urls %}
4
5{% block breadcrumbs %}
6<div class="breadcrumbs">
7<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
8&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst }}</a>
9&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst|escape }}</a>
10&rsaquo; <a href="{% url opts|admin_urlname:'change' object.pk|admin_urlquote %}">{{ object|truncatewords:"18" }}</a>
11&rsaquo; {% trans 'Delete' %}
12</div>
13{% endblock %}
14
15{% block content %}
16{% if perms_lacking or protected %}
17 {% if perms_lacking %}
18 <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>
19 <ul>
20 {% for obj in perms_lacking %}
21 <li>{{ obj }}</li>
22 {% endfor %}
23 </ul>
24 {% endif %}
25 {% if protected %}
26 <p>{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' 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 with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All related objects will be deleted{% endblocktrans %}</p>
35 <form action="" method="post">{% csrf_token %}
36 <div>
37 <input type="hidden" name="post" value="yes" />
38 <input type="submit" value="{% trans "Yes, I'm sure" %}" />
39 </div>
40 </form>
41{% endif %}
42{% endblock %}