{% load wagtailadmin_tags %}
{% block title %}
{{ header_title }}
{% endblock %}
{% block side_panels %}
{% for panel in side_panels %}
{% include "wagtailadmin/shared/side_panels/includes/side_panel.html" with panel=panel %}
{% endfor %}
{% endblock side_panels %}
{% block breadcrumbs %}
{% block breadcrumbs_content %}
{% breadcrumbs breadcrumbs_items icon_name=icon_name %}
{% endblock %}
{% block header_buttons %}
{% if hydrate_create_view %}
{% fragment as actions %}
{% for button in header_buttons %}
{% component button %}
{% endfor %}
{% endfragment %}
{% include "wagtailadmin/shared/headers/_actions.html" with actions=actions %}
{% endif %}
{% endblock %}
{% endblock %}
{% block history_link %}
{% if hydrate_create_view and history_url %}
{% include "wagtailadmin/shared/headers/_history_icon_link.html" with history_url=history_url only %}
{% endif %}
{% endblock %}
{% block form_title_heading %}
{{ page_subtitle|default:page_title }}
{% endblock %}
{% block form %}
{% if hydrate_create_view and object.latest_revision_id and loaded_revision_created_at %}
{% include "wagtailadmin/generic/includes/_loaded_revision_inputs.html" with loaded_revision_id=object.latest_revision_id loaded_revision_created_at=loaded_revision_created_at only %}
{% endif %}
{% endblock %}
{% block editing_sessions %}
{% comment %}
The create view is not initially loaded with the editing sessions module,
as it requires the instance to exist. Once the instance is created, we
load the module into place adjacent to the autosave indicator.
{% endcomment %}
{% if hydrate_create_view and editing_sessions %}
{% component editing_sessions %}
{% endif %}
{% endblock %}
{% block extra %}{% endblock %}