{% extends 'OroUIBundle:actions:update.html.twig' %} {% form_theme form with ['OroAddressBundle:Include:fields.html.twig', 'OroFormBundle:Form:fields.html.twig'] %} {% set salesFunnelHint = '' %} {% if entity %} {% set salesFunnelHint = 'orocrm.sales.salesfunnel.hint'|trans({'%id%' : entity.id}) %} {% endif %} {% oro_title_set({params : {"%sales_funnel%": salesFunnelHint} }) %} {% set formAction = form.vars.value.id ? path('orocrm_sales_salesfunnel_update', { 'id': form.vars.value.id }) : path('orocrm_sales_salesfunnel_create') %} {% block head_script %} {{ parent() }} {% block stylesheets %} {{ form_stylesheet(form) }} {% endblock %} {% endblock %} {% block navButtons %} {% if form.vars.value.id and resource_granted('DELETE', form.vars.value) %} {{ UI.deleteButton({ 'dataUrl': path('oro_api_delete_salesfunnel', {'id': form.vars.value.id}), 'dataRedirect': path('orocrm_sales_salesfunnel_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-sales-funnel', 'dataId': form.vars.value.id, 'entity_label': 'orocrm.sales.salesfunnel.entity_label'|trans }) }} {{ UI.buttonSeparator() }} {% endif %} {{ UI.cancelButton(path('orocrm_sales_salesfunnel_index')) }} {% set html = UI.saveAndCloseButton() %} {% if form.vars.value.id or resource_granted('orocrm_sales_salesfunnel_update') %} {% set html = html ~ UI.saveAndStayButton() %} {% endif %} {{ UI.dropdownSaveButton({'html': html}) }} {% if resource_granted('orocrm_sales_salesfunnel_create') and resource_granted('oro_workflow') and form.vars.value.id is empty %} {% endif %} {% endblock %} {% block pageHeader %} {% if form.vars.value.id %} {% set breadcrumbs = { 'entity': form.vars.value, 'indexPath': path('orocrm_sales_salesfunnel_index'), 'indexLabel': 'orocrm.sales.salesfunnel.entity_plural_label'|trans, 'entityTitle': salesFunnelHint } %} {{ parent() }} {% else %} {% include 'OroUIBundle::page_title_block.html.twig' with { title: 'orocrm.sales.salesfunnel.new_entity'|trans } %} {% endif %} {% endblock pageHeader %} {% block stats %}