{% extends "wagtailadmin/generic/base.html" %} {% load wagtailadmin_tags %} {% load i18n %} {% block bodyclass %}editor-view{% endblock %} {% block content %} {% get_comments_enabled as comments_enabled %} {% include 'wagtailadmin/shared/headers/page_create_header.html' with title=header_title %}
{% 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 }} {{ 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 %} {{ media.js }} {% endblock %}