{% extends "django_backend/base_dialog.html" %} {% load i18n floppyforms django_backend_tags %} {% block content %} {% randid as random_id %} {% block translation_links %} {% if not is_dialog and backend.FEATURES.translatable %}

{% trans "Translations:" %} {% include "django_backend/_object_translations.html" %}

{% endif %} {% endblock %} {% block headline %}

{% block headline_text %}{% blocktrans with object=object %}Delete {{ object }}{% endblocktrans %}{% endblock %} {% if object.pk and object.get_absolute_url %} {% endif %}

{% endblock %} {% block form %} {% if perms_needed or protected %} {% if perms_needed %}

{% blocktrans with object=object %}Deleting the {{ object }} 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 with object=object %}Deleting the {{ object }} would require deleting the following protected related objects:{% endblocktrans %}

{% endif %} {% if backend|has_read_permission:user|for_object:object %}

{% blocktrans %}Ok, go back.{% endblocktrans %}

{% endif %} {% else %}
{% csrf_token %}

{% blocktrans with object=object %}Are you sure you want to delete {{ object }}? All of the following related items will be deleted:{% endblocktrans %}

{% block submit_row %}
{% endblock %}
{% endif %} {% endblock %} {% endblock %}