{% extends "sb_admin/sb_admin_base.html" %} {% load i18n l10n admin_urls static %} {% block extrahead %} {{ block.super }} {{ media }} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} {% block content %}

{% blocktrans with objects_name=objects_name %}Delete selected {{ objects_name }}?{% endblocktrans %}

{% blocktrans with objects_name=objects_name %}This will delete the selected {{ objects_name }} and the related records listed below.{% endblocktrans %}

{% if perms_lacking %} {% trans "Missing permissions" as warning_title %} {% trans "Deleting the selected objects would affect related records that your account cannot delete." as warning_text %} {% trans "Objects blocked by permissions" as list_title %} {% trans "Adjust permissions or ask an administrator before trying again." as list_help %} {% include "sb_admin/actions/includes/delete_impact_panel.html" with warning_title=warning_title warning_text=warning_text list_title=list_title list_help=list_help object_list=perms_lacking only %}

{% trans "Bulk deletion is unavailable" %}

{% trans "Back" %}
{% elif protected %} {% trans "Protected related objects" as warning_title %} {% trans "Some selected objects cannot be deleted while protected related records still exist." as warning_text %} {% trans "Protected objects" as list_title %} {% trans "Remove or detach these records, then try again." as list_help %} {% include "sb_admin/actions/includes/delete_impact_panel.html" with warning_title=warning_title warning_text=warning_text list_title=list_title list_help=list_help object_list=protected only %}

{% trans "Bulk deletion is blocked" %}

{% trans "Back" %}
{% else %} {% trans "Review the bulk deletion impact" as warning_title %} {% trans "After confirmation, these records will be deleted and cannot be restored from the admin." as warning_text %} {% trans "Deletion preview" as list_title %} {% trans "Review the exact objects below before confirming." as list_help %} {% include "sb_admin/actions/includes/delete_impact_panel.html" with warning_title=warning_title warning_text=warning_text list_title=list_title list_help=list_help tree_objects=deletable_objects object_list=deleted_objects model_count=model_count show_summary=True only %}

{% include "sb_admin/includes/change_form_title.html" %}

{% csrf_token %} {% for obj in queryset %} {% endfor %} {% trans "No, take me back" %}
{% endif %}
{% endblock %}