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

{% blocktrans with escaped_object=object %}Delete "{{ escaped_object }}"?{% endblocktrans %}

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

{% if perms_lacking %} {% trans "Missing permissions" as warning_title %} {% trans "Deleting this object 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 "Deletion is unavailable" %}

{% trans "Back" %}
{% elif protected %} {% trans "Protected related objects" as warning_title %} {% trans "This object 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 "Deletion is blocked" %}

{% trans "Back" %}
{% else %} {% trans "Review the 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 object_list=deleted_objects model_count=model_count show_summary=True only %}

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

{% csrf_token %} {% if is_popup %}{% endif %} {% if to_field %}{% endif %} {% trans "No, take me back" %}
{% endif %}
{% endblock %}