{% extends "xprez/admin/sections/section_base.html" %} {% load i18n %} {% load xprez_admin %} {% block data_prefix %}{{ section.admin_form.prefix }}{% endblock %} {% block data_unsaved %}{% if not section.saved %}data-unsaved{% endif %}{% endblock %} {% block before_header %} {% include "xprez/admin/includes/adders/content_section_before.html" with xprez_admin=section.admin_form.xprez_admin adder_container=section.container %} {% endblock %} {% block header_settings %}
{% for field in section.admin_form.shortcuts %} {% include "xprez/admin/form/field.html" with field=field size="flex-auto" js_controller_class="XprezShortcutFieldController" %} {% endfor %}
{% endblock %} {% block header_actions %} {{ block.super }} {{ section.admin_form.visible }} {% with xprez_admin=section.admin_form.xprez_admin %} {% url xprez_admin.xprez_duplicate_url_name section_pk=section.pk as duplicate_url %} {% url xprez_admin.xprez_clipboard_clip_url_name xprez_admin.constants.SECTION_KEY section.pk as clip_url %} {% include "xprez/admin/includes/copy_menu.html" with duplicate_url=duplicate_url clip_url=clip_url copy_menu_controller="XprezSectionCopyMenu" duplicate_controller="XprezSectionDuplicateAdder" %} {% endwith %} {% trans "Remove" as title_remove %} {% include "xprez/admin/includes/delete_trigger.html" with component_name="xprez-section-delete-trigger" title=title_remove delete_field=section.admin_form.delete %} {% endblock %} {% block section_body %}
{% for module in section.admin_form.xprez_modules %} {% xprez_module_render_admin module %} {% endfor %}
{% include "xprez/admin/includes/delete_info.html" with component_prefix="xprez-section" message_subject="section" %}
{% include "xprez/admin/form/errors.html" with errors=section.admin_form.non_field_errors %}
{% trans "Section" %}
{% include "xprez/admin/form/field.html" with field=section.admin_form.max_width_choice size="flex-1" %} {% include "xprez/admin/form/field.html" with field=section.admin_form.max_width_custom label=False suffix=section.units.max_width.custom size="flex-0" attributes="data-hidden data-show-when=\""|add:section.admin_form.max_width_choice.html_name|add:":custom\""|safe size="flex-0" %}
{% include "xprez/admin/form/field.html" with field=section.admin_form.alternate_background size="flex-1" %}
{% include "xprez/admin/form/field.html" with field=section.admin_form.background_color size="flex-1" %}
{% include "xprez/admin/form/field.html" with field=section.admin_form.css_class size="flex-1" %}
{% for config in section.admin_form.xprez_configs %} {% xprez_section_config_render_admin config %} {% endfor %}
{% endblock %} {% block hidden_fields %} {{ section.admin_form.position.as_hidden }} {% endblock %}