diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_browse_results.html b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_browse_results.html index 32eb1d790..1844abd18 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_browse_results.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_browse_results.html @@ -1,9 +1,5 @@ {% load i18n %} -{% if page_types_restricted %} - {% include "wagtailadmin/chooser/_page_type_restricted_warning.html" with page_type_name=page_type.get_verbose_name %} -{% endif %} -
- {% blocktrans with type=page_type_name %} - Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. - {% endblocktrans %} -
diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_results.html b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_results.html index 7311f4b78..9c624c00c 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_results.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/chooser/_search_results.html @@ -1,9 +1,5 @@ {% load i18n %} -{% if page_types_restricted %} - {% include "wagtailadmin/chooser/_page_type_restricted_warning.html" with page_type_name=page_type.get_verbose_name %} -{% endif %} -+ {% blocktrans with type=page_type_name %} + Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. + {% endblocktrans %} +
+ {% endif %} +