PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/admin/delete_confirmation.html

https://code.google.com/p/mango-py/
HTML | 42 lines | 40 code | 2 blank | 0 comment | 0 complexity | 9562bd64726e34147ba7aacb902ef673 MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n %}
 3
 4{% block breadcrumbs %}
 5<div class="breadcrumbs">
 6     <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
 7     <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
 8     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
 9     <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
10     {% trans 'Delete' %}
11</div>
12{% endblock %}
13
14{% block content %}
15{% if perms_lacking or protected %}
16    {% if perms_lacking %}
17        <p>{% blocktrans with object 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>
18        <ul>
19        {% for obj in perms_lacking %}
20            <li>{{ obj }}</li>
21        {% endfor %}
22        </ul>
23    {% endif %}
24    {% if protected %}
25        <p>{% blocktrans with object as escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktrans %}</p>
26        <ul>
27        {% for obj in protected %}
28            <li>{{ obj }}</li>
29        {% endfor %}
30        </ul>
31    {% endif %}
32{% else %}
33    <p>{% blocktrans with object 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>
34    <ul>{{ deleted_objects|unordered_list }}</ul>
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 %}