{% extends base_template %} {% load i18n l10n %} {% load url from future %} {% load xadmin_tags %} {% block breadcrumbs %} {% endblock %} {% block nav_title %}{{title}}{% endblock %} {% block content %} {% if perms_lacking or protected %} {% if perms_lacking %}
{% 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 %}
{% endif %} {% if protected %}
{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}
{% endif %} {% else %}
{% 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 %}
{% for deletable_object in deletable_objects %} {% endfor %}
{% csrf_token %}
{% for obj in queryset %} {% endfor %} {% view_block 'form_fields' %}
{% endif %} {% endblock %}