{% extends '@OroUI/actions/update.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% if entity.id %} {% oro_title_set({params : {'%title%': entity.name} }) %} {% endif %} {% set formAction = formAction|default(entity.id ? path('oro_cms_content_template_update', { 'id': entity.id }) : path('oro_cms_content_template_create')) %} {% block pageHeader %} {% if entity.id %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_cms_content_template_index'), 'indexLabel': 'oro.cms.contenttemplate.entity_plural_label'|trans, 'entityTitle': entity.name|default('N/A'|trans) } %} {{ parent() }} {% else %} {% set title = 'oro.ui.create_entity'|trans({'%entityName%': 'oro.cms.contenttemplate.entity_label'|trans}) %} {% include '@OroUI/page_title_block.html.twig' with { title: title } %} {% endif %} {% endblock pageHeader %} {% block navButtons %} {{ parent() }} {{ UI.cancelButton(path('oro_cms_content_template_index')) }} {% set html = UI.saveAndCloseButton({ 'route': 'oro_cms_content_template_view', 'params': { 'id': '$id' } }) %} {% if is_granted('oro_cms_content_template_update') %} {% set html = html ~ UI.saveAndStayButton({ 'route': 'oro_cms_content_template_update', 'params': { 'id': '$id' } }) %} {% endif %} {{ UI.dropdownSaveButton({'html': html}) }} {% endblock navButtons %} {% block content_data %} {% set id = 'contenttemplate-edit' %} {% set contentTemplateContent %}