{% extends "../../_collapsible_box.html" %} {% load i18n %} {% load static %} {% load rules %} {% block collapsible_box_icon %} wrench {% endblock collapsible_box_icon %} {% block collapsible_box_title %} {% translate "Actions" %} {% endblock collapsible_box_title %} {% block collapsible_box_content %} {% has_perm 'cms.publish_page_object' request.user as can_publish_pages %} {% if page_form.instance.id and can_edit_page and not page.archived %} {% endif %} {% if page.explicitly_archived %} {% elif page.implicitly_archived %}
{% blocktranslate count counter=page.explicitly_archived_ancestors|length trimmed %} To restore this page, you have to restore its parent page: {% plural %} To restore this page, you have to restore all its archived parent pages: {% endblocktranslate %}
{% translate "You cannot archive a page which is embedded as live content from another page." %}
{% blocktranslate count counter=mirroring_pages|length trimmed %} To archive this page, you have to remove the embedded live content from this page first: {% plural %} To archive this page, you have to remove the embedded live content from these pages first: {% endblocktranslate %}
{% for mirroring_page in mirroring_pages %} {% has_perm 'cms.change_page_object' request.user mirroring_page as can_change_page_object %} {% if can_change_page_object %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %} ({{ mirroring_page.region }}) {% endif %} {% else %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %} ({{ mirroring_page.region }}) {% endif %} {% endif %} {% endfor %} {% endwith %} {% endif %} {% endif %} {% if perms.cms.delete_page %} {% if not page.is_leaf %} {% with page.get_descendants.prefetch_translations as descendants %}
{% translate "You cannot delete a page which has subpages." %}
{% blocktranslate count counter=descendants|length trimmed %}
To delete this page, you have to delete or move its subpage first:
{% plural %}
To delete this page, you have to delete or move its subpages first:
{% endblocktranslate %}
{% translate "This page cannot be deleted because it was embedded as live content from another page." %}
{% blocktranslate count counter=mirroring_pages|length trimmed %} To delete this page, you have to remove the embedded live content from this page first: {% plural %} To delete this page, you have to remove the embedded live content from these pages first: {% endblocktranslate %}
{% for mirroring_page in mirroring_pages %} {% has_perm 'cms.change_page_object' request.user mirroring_page as can_change_page_object %} {% if can_change_page_object %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %} ({{ mirroring_page.region }}) {% endif %} {% else %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %} ({{ mirroring_page.region }}) {% endif %} {% endif %} {% endfor %} {% endwith %} {% else %} {% endif %} {% endif %} {% endblock collapsible_box_content %}