{% 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 %}
{% csrf_token %} {{ 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 %}