{% extends "wagtailadmin/base.html" %} {% load i18n wagtailadmin_tags %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Delete {{ title }}{% endblocktrans %}{% endblock %} {% block content %} {% include "wagtailadmin/shared/header.html" with title=_("Delete") subtitle=page.get_admin_display_title icon="doc-empty-inverse" %}
{% include "wagtailadmin/shared/usage_summary.html" %} {% if not is_protected %}

{% trans 'Are you sure you want to delete this page?' %} {% if descendant_count %} {% blocktrans trimmed with counter=descendant_count descendant_count=descendant_count|intcomma count counter=counter %} Deleting this page will also delete {{ descendant_count }} child page. {% plural %} Deleting this page will also delete {{ descendant_count }} more child pages. {% endblocktrans %} {% if translation_count %} {# has translations #} {% if translation_descendant_count %} {# has translations with descendants #} {% if translation_count == 1 %} {% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page. {% plural %} It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% else %} {% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page. {% plural %} It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% endif %} {% else %} {% blocktrans trimmed with counter=translation_count translation_count=translation_count|intcomma count counter=counter %} It will also delete {{ translation_count }} translation. {% plural %} It will also delete {{ translation_count }} translations. {% endblocktrans %} {% endif %} {% endif %} {% elif translation_count %} {# no descendants #} {% if translation_descendant_count %} {# has translations with descendants #} {% if translation_count == 1 %} {% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page. {% plural %} Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% else %} {% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter%} Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page. {% plural %} Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% endif %} {% else %} {% blocktrans trimmed with counter=translation_count descendant_count=descendant_count|intcomma translation_count=translation_count|intcomma count counter=counter %} Deleting this page will also delete {{ translation_count }} translation of this page. {% plural %} This will also delete {{ descendant_count }} more child pages. Deleting this page will also delete {{ translation_count }} translations of this page. {% endblocktrans %} {% endif %} {% endif %}

{% csrf_token %} {% if confirm_before_delete %}

{% blocktrans trimmed with total_pages=descendant_count|add:1|intcomma %} This action will delete total {{ total_pages }} pages. {% endblocktrans %}

{% endif %} {% trans "No, don't delete it" %}
{% endif %} {% page_permissions page as page_perms %} {% if page_perms.can_unpublish %} {% url 'wagtailadmin_pages:unpublish' page.id as unpublish_url %}

{% blocktrans trimmed %}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 %}