{% extends "modeladmin/delete.html" %} {% load i18n modeladmin_tags %} {% block content_main %}
{% if protected_error %}

{% blocktrans with view.verbose_name|capfirst as model_name %}{{ model_name }} could not be deleted{% endblocktrans %}

{% blocktrans with instance as instance_name %}'{{ instance_name }}' is currently referenced by other objects, and cannot be deleted without jeopardising data integrity. To delete it successfully, first remove references from the following objects, then try again:{% endblocktrans %}

{% trans 'Go back to listing' %}

{% elif cannot_delete_page_variants_error %}

{% blocktrans %}Cannot delete all the page variants{% endblocktrans %}

{% blocktrans %}You need to have permissions to delete the page variants associated with this segment.{% endblocktrans %} {% else %} {% with page_variants=view.get_affected_page_objects %} {% if page_variants %}

{% blocktrans %}Deleting the segment will also mean deleting all the page variants associated with it. Do you want to continue?{% endblocktrans %}

{% blocktrans %}The page objects that will be deleted are:{% endblocktrans %}

{% trans 'Yes, delete the segment and associated page variants' as submit_button_value %} {% else %}

{% blocktrans %}Do you want to continue deleting this segment?{% endblocktrans %}

{% trans 'Yes, delete the segment' as submit_button_value %} {% endif %}
{% csrf_token %}
{% endwith %} {% endif %}
{% endblock %}