{% extends "vantage/base.html" %} {% load static vantage i18n %} {% block head %} {% endblock %} {% block content %}

{% blocktranslate with label=panel.get_label|lower %}Delete {{ label }}?{% endblocktranslate %}

{{ object }} ยท #{{ object.pk }}

{% if messages %} {% endif %}
{% if cascade.is_blocked %}

{{ cascade.blocked_by }}

{% elif soft_delete %} {% comment %} This model keeps a trash, so nothing is being destroyed and the permanence warning below would be false. No cascade preview either: the related rows are untouched, and listing them under a heading that says they will be destroyed is the opposite of informing someone. {% endcomment %}

{% blocktranslate %}This moves {{ object }} to the trash. You can restore it later.{% endblocktranslate %}

{% translate "Related records are not affected." %}

{% else %}

{% blocktranslate %}This permanently deletes {{ object }}. It cannot be undone.{% endblocktranslate %}

{% comment %} The cascade preview. A delete that silently takes 12 other rows with it is the single worst surprise an admin panel can hand someone, so the counts are stated before the button and again on it. {% endcomment %} {% if cascade.unavailable %}

{{ cascade.unavailable }}

{% elif cascade.groups %}

{% translate "These will be destroyed too" %}

{% else %}

{% translate "Nothing else references this record." %}

{% endif %} {% if cascade.cleared %}

{% translate "These survive, but lose a reference" %}

{% endif %} {% endif %}
{% translate "Cancel" %} {% if not cascade.is_blocked %}
{% csrf_token %}
{% endif %}
{% endblock %}