{% extends "wagtailadmin/base.html" %} {% load i18n wagtailadmin_tags %} {% block content %} {% trans "Delete" as del_str %} {% include "wagtailadmin/shared/header.html" with title=del_str subtitle=page.get_admin_display_title icon="doc-empty-inverse" %}

{% trans 'Are you sure you want to delete this page?' %} {% if descendant_count %} {% blocktrans count counter=descendant_count %} This will also delete one more subpage. {% plural %} This will also delete {{ descendant_count }} more subpages. {% endblocktrans %} {% endif %}

{% if variants %}

{% blocktrans count counter=variants|length %} This page is personalisable. Deleting it will delete its variant: {% plural %} This page is personalisable. Deleting it will delete all of its variants: {% endblocktrans %}

{% endif %}
{% csrf_token %} {% if variants %} {% trans 'Yes, delete the page and its variants' as submit_button_value %} {% else %} {% trans 'Yes, delete it' as submit_button_value %} {% endif %} {% trans "No, don't delete it" %}
{% page_permissions page as page_perms %} {% if page_perms.can_unpublish %} {% url 'wagtailadmin_pages:unpublish' page.id as unpublish_url %}

{% blocktrans %}Alternatively you can unpublish the page. This removes the page from public view and you can edit or publish it again later.{% endblocktrans %}

{% endif %}
{% endblock %}