PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/django/contrib/admin/templates/admin/delete_selected_confirmation.html

https://code.google.com/p/mango-py/
HTML | 47 lines | 45 code | 2 blank | 0 comment | 0 complexity | 67fd30ff1d08cfd770cf3311ecbb5cb7 MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n l10n %}
 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     {% trans 'Delete multiple objects' %}
10</div>
11{% endblock %}
12
13{% block content %}
14{% if perms_lacking or protected %}
15    {% if perms_lacking %}
16        <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>
17        <ul>
18        {% for obj in perms_lacking %}
19            <li>{{ obj }}</li>
20        {% endfor %}
21        </ul>
22    {% endif %}
23    {% if protected %}
24        <p>{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}</p>
25        <ul>
26        {% for obj in protected %}
27            <li>{{ obj }}</li>
28        {% endfor %}
29        </ul>
30    {% endif %}
31{% else %}
32    <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>
33    {% for deletable_object in deletable_objects %}
34        <ul>{{ deletable_object|unordered_list }}</ul>
35    {% endfor %}
36    <form action="" method="post">{% csrf_token %}
37    <div>
38    {% for obj in queryset %}
39    <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
40    {% endfor %}
41    <input type="hidden" name="action" value="delete_selected" />
42    <input type="hidden" name="post" value="yes" />
43    <input type="submit" value="{% trans "Yes, I'm sure" %}" />
44    </div>
45    </form>
46{% endif %}
47{% endblock %}