{% extends '@ibexadesign/content/edit_base.html.twig' %} {% trans_default_domain 'ibexa_content_edit' %} {% block meta %} {% endblock %} {% block header %} {% set content_edit_sidebar_right = knp_menu_get('ezplatform_admin_ui.menu.content_edit.sidebar_right', [], { 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language, }) %} {% embed '@ibexadesign/ui/edit_header.html.twig' with { action_name: 'editing'|trans|desc('Editing'), content_type_name: content_type.name, title: content.name, icon_name: 'edit', show_autosave_status: true, description: content_type.description, language: language, subtitle: 'editing_details_subtitle'|trans({ '%location%': parent_location.contentInfo.name })|desc('under %location%'), context_actions: knp_menu_render(content_edit_sidebar_right, { 'template': '@ibexadesign/ui/menu/context_menu.html.twig' }) } %} {% block after_title %} {{ ibexa_twig_component_group('admin-ui-content-form-edit-header-actions', { 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language }) }} {% endblock %} {% endembed %} {% endblock %} {% block form_before %} {{ ibexa_twig_component_group('admin-ui-content-edit-form-before', { 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language }) }} {% endblock %} {% block form_fields %}
{{ parent() }} {{ form_widget(form.publish, {'attr': {'hidden': 'hidden'}}) }} {{ form_widget(form.publishAndEdit, { attr: { hidden: 'hidden' }}) }} {{ form_widget(form.saveDraft, {'attr': {'hidden': 'hidden'}}) }} {{ form_widget(form.saveDraftAndClose, { attr: { hidden: 'hidden' }}) }} {{ form_widget(form.cancel, {'attr': {'hidden': 'hidden'}}) }}
{% endblock %} {% block anchor_menu %} {% set content_edit_anchor_menu = knp_menu_get('ibexa.admin_ui.menu.content_edit.anchor_menu', [], { 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language, 'grouped_fields': grouped_fields, }) %} {% embed '@ibexadesign/ui/anchor_navigation_menu.html.twig' with anchor_params %} {% block navigation_menu_body %} {{ knp_menu_render(content_edit_anchor_menu, { 'template': '@ibexadesign/ui/menu/anchor_menu.html.twig' }) }} {% endblock %} {% endembed %} {% endblock %} {% block content_sections %} {{ ibexa_twig_component_group('admin-ui-content-edit-sections', { 'form': form, 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language, 'show_meta_fields': show_meta_fields|default(false), 'show_meta_fields_header': show_meta_fields_header|default(false), }) }} {% endblock %} {% block form_after %} {{ ibexa_twig_component_group('admin-ui-content-edit-form-after', { 'content': content, 'content_type': content_type, 'location': location, 'parent_location': parent_location, 'language': language }) }} {% endblock %}