{% extends "wagtailadmin/base.html" %} {% load wagtailadmin_tags %} {% load i18n %} {% block titletag %}{% blocktrans with page_type=content_type.model_class.get_verbose_name %}New {{ page_type }}{% endblocktrans %}{% endblock %} {% block bodyclass %}page-editor create model-{{ content_type.model }}{% endblock %} {% block content %}
{% explorer_breadcrumb parent_page include_self=1 trailing_arrow=True %}

{% trans 'New' %} {{ content_type.model_class.get_verbose_name }}

{% if locale %} {% endif %}
{% csrf_token %} {% if parent_page.is_root %} {# The user is allowed to set a different locale for pages created at the root #} {# If they've done this, make sure their chosen locale is passed in the form #} {% endif %} {{ edit_handler.render_form_content }}
{% endblock %} {% block extra_css %} {{ block.super }} {% include "wagtailadmin/pages/_editor_css.html" %} {{ edit_handler.form.media.css }} {{ action_menu.media.css }} {% endblock %} {% block extra_js %} {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {% comment %} Additional js from widgets media. Allows for custom widgets in admin panel. {% endcomment %} {{ edit_handler.form.media.js }} {{ action_menu.media.js }} {% comment %} Additional HTML code that edit handlers define through 'html_declarations'. (Technically this isn't JavaScript, but it will generally be data that exists for JavaScript to work with...) {% endcomment %} {{ edit_handler.html_declarations }} {% endblock %}