{% load wagtailadmin_tags i18n %}
{% csrf_token %} {% if parent_page %} {% if parent_page.is_root %}
{% icon name='help' %} {% if perms.wagtailcore.add_site %} {% url 'wagtailsites:index' as wagtailsites_index_url %}

{% blocktrans trimmed %} The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site. {% endblocktrans %} {% if wagtailsites_index_url %} {% trans "Configure a site now." %} {% endif %}

{% blocktrans trimmed %} If you just want to add pages to an existing site, create them as children of the homepage instead. {% endblocktrans %}

{% else %} {% blocktrans trimmed %} Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage. {% endblocktrans %} {% endif %}
{# get_url_parts will return None is the page has no site #} {% elif not parent_page.get_url_parts %}
{% icon name='warning' %} {% if perms.wagtailcore.add_site %} {% url 'wagtailsites:index' as wagtailsites_index_url %} {% blocktrans trimmed %} There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location. {% endblocktrans %} {% if wagtailsites_index_url %} {% trans "Configure a site now." %} {% endif %} {% else %} {% blocktrans trimmed %} There is no site record for this location. Pages created here will not be accessible at any URL. {% endblocktrans %} {% endif %}
{% endif %} {% endif %} {% component table %} {% if is_paginated %} {% include "wagtailadmin/shared/pagination_nav.html" with items=page_obj linkurl=index_url %} {% endif %} {% trans "Select all pages in listing" as select_all_text %} {% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=select_all_text app_label='wagtailcore' model_name='page' objects=pages %}