{% extends '@ibexadesign/ui/edit_base.html.twig' %} {% import '@ibexadesign/content/edit_macros.html.twig' as edit_macros %} {% trans_default_domain 'ibexa_content_edit' %} {% set target_id_prefix = target_id_prefix|default('ibexa-edit-content-sections-content-fields-') %} {% set grouped_fields = grouped_fields|default([]) %} {% set anchor_params = { items: grouped_fields|keys|map((label) => { label, target_id: target_id_prefix ~ label|lower|slug } ) } %} {% set is_autosave_enabled = ibexa_user_settings['autosave'] is same as('enabled') %} {% set form_has_autosave = form.autosave is defined %} {% set default_form_templates = ibexa_admin_ui_config.contentEditFormTemplates %} {% set form_templates = form_templates is defined ? default_form_templates|merge(form_templates) : default_form_templates %} {% form_theme form with form_templates %} {% block left_sidebar %} {% if without_close_button is not defined or without_close_button != true %} {% set referrer_location = content is defined and is_published ? location : parent_location %} {% endif %} {% block anchor_menu %} {% include '@ibexadesign/ui/anchor_navigation_menu.html.twig' with anchor_params %} {% endblock %} {% endblock %} {% block content %}