{% extends '@OroUI/actions/update.html.twig' %} {% oro_title_set({ params : { "%email%": entity.email|default('N/A'|trans), "%entityName%": 'oro.customer.customeruser.entity_label'|trans } }) %} {% if saveFormAction is defined %} {% set formAction = path(saveFormAction.route, saveFormAction.parameters) %} {% else %} {% set formAction = entity.id ? path('oro_customer_customer_user_update', { 'id': entity.id }) : path('oro_customer_customer_user_create') %} {% endif %} {% block navButtons %} {% import '@OroUI/macros.html.twig' as UI %} {{ parent() }} {{ UI.cancelButton(path('oro_customer_customer_user_index')) }} {% set html = '' %} {% if is_granted('oro_customer_customer_user_view') %} {% set html = html ~ UI.saveAndCloseButton({ 'route' : 'oro_customer_customer_user_view', 'params' : {'id': '$id'} }) %} {% endif %} {% if is_granted('oro_customer_customer_user_update') %} {% set html = html ~ UI.saveAndStayButton({ 'route' : 'oro_customer_customer_user_update', 'params': {'id': '$id'} }) %} {% endif %} {% if returnAction is defined and is_granted(returnAction.aclRole) %} {% set html = html ~ UI.saveAndReturnButton({ 'route': returnAction.route, 'params': returnAction.parameters }) %} {% endif %} {{ UI.dropdownSaveButton({'html': html}) }} {% endblock navButtons %} {% block pageHeader %} {% if entity.id %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_customer_customer_user_index'), 'indexLabel': 'oro.customer.customeruser.entity_plural_label'|trans, 'entityTitle': entity.email|default('N/A'|trans) } %} {{ parent() }} {% else %} {% set title = 'oro.ui.create_entity'|trans({'%entityName%': 'oro.customer.customeruser.entity_label'|trans}) %} {% include '@OroUI/page_title_block.html.twig' with { title: title } %} {% endif %} {% endblock pageHeader %} {% block stats %}