{% load i18n wagtailadmin_tags %} {% if page_types_restricted %} {% trans "Choose" as choose_str %} {% else %} {% trans "Choose a page" as choose_str %} {% endif %} {% querystring as search_query_params %} {% include "wagtailadmin/shared/header.html" with title=choose_str subtitle=page_type_names|join:", " search_url="wagtailadmin_choose_page_search" query_parameters=search_query_params icon="doc-empty-inverse" search_disable_async=True %}
{% include 'wagtailadmin/chooser/_link_types.html' with current='internal' %} {% if page_types_restricted %}

{% icon name='warning' %} {% blocktrans trimmed with type=page_type_names|join:", " count counter=page_type_names|length %} Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. {% plural %} Only the following page types may be chosen for this field: {{ type }}. Search results will exclude pages of other types. {% endblocktrans %}

{% endif %} {% if is_multiple_choice %}
{% include 'wagtailadmin/chooser/_browse_results.html' %}
{% else %}
{% include 'wagtailadmin/chooser/_browse_results.html' %}
{% endif %}