{% extends "modeladmin/delete.html" %} {% load i18n modeladmin_tags %} {% block content_main %}
{% 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 %}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 %}
{% blocktrans %}Do you want to continue deleting this segment?{% endblocktrans %}
{% trans 'Yes, delete the segment' as submit_button_value %} {% endif %} {% endwith %} {% endif %}