{% load wagtailimages_tags wagtailadmin_tags %} {% load i18n %} {% trans "Choose an image" as choose_str %} {% include "wagtailadmin/shared/header.html" with title=choose_str merged=1 icon="image" %} {{ uploadform.media.js }} {{ uploadform.media.css }}
{% if uploadform %} {# Using nice-padding and full width class until the modal header is restyled #}
{% trans "Search" as search_text %} {% include 'wagtailadmin/shared/tabs/tab_nav_link.html' with tab_id='search' title=search_text active=uploadform.errors %} {% trans "Upload" as upload_text %} {% include 'wagtailadmin/shared/tabs/tab_nav_link.html' with tab_id='upload' title=upload_text active=uploadform.errors %}
{% endif %}
{% if uploadform %} {% include "wagtailimages/chooser/upload_form.html" with form=uploadform will_select_format=will_select_format %} {% endif %}