{% extends 'OroUIBundle:actions:view.html.twig' %} {% import 'OroUIBundle::macros.html.twig' as macros %} {% set salesFunnelHint = '' %} {% if entity %} {% set salesFunnelHint = 'orocrm.sales.salesfunnel.hint'|trans({'%id%' : entity.id}) %} {% endif %} {% oro_title_set({params : {"%sales_funnel%": salesFunnelHint} }) %} {% block navButtons %} {% if resource_granted('EDIT', entity) %} {{ UI.editButton({ 'path' : path('orocrm_sales_salesfunnel_update', { 'id': entity.id }), 'entity_label': 'orocrm.sales.salesfunnel.entity_label'|trans }) }} {% endif %} {% if resource_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_api_delete_salesfunnel', {'id': entity.id}), 'dataRedirect': path('orocrm_sales_salesfunnel_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-sales-funnel', 'dataId': entity.id, 'entity_label': 'orocrm.sales.salesfunnel.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block stats %}
  • {{ 'oro.ui.created_at'|trans }}: {{ entity.createdAt ? entity.createdAt|oro_format_datetime : 'N/A' }}
  • {{ 'oro.ui.updated_at'|trans }}: {{ entity.updatedAt ? entity.updatedAt|oro_format_datetime : 'N/A' }}
  • {% endblock stats %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('orocrm_sales_salesfunnel_index'), 'indexLabel': 'orocrm.sales.salesfunnel.entity_plural_label'|trans, 'entityTitle': salesFunnelHint } %} {{ parent() }} {% endblock pageHeader %} {% block content_data %} {% set informationWidget %} {{ oro_widget_render({ 'widgetType': 'block', 'url': path('orocrm_sales_salesfunnel_info', {id: entity.id}), }) }} {% endset %} {% set dataBlocks = [ { 'title': 'General Information'|trans, 'class': 'active', 'subblocks': [{'data' : [informationWidget] }] } ] %} {% if entity.opportunity %} {% set opportunityInfoWidget %} {{ oro_widget_render({ 'widgetType': 'block', 'url': path('orocrm_sales_opportunity_info', {id: entity.opportunity.id}) }) }} {% endset %} {% set dataBlocks = dataBlocks|merge([{ 'title': 'Opportunity Information'|trans, 'subblocks': [{'data' : [opportunityInfoWidget] }] }]) %} {% endif %} {% set id = 'salesFunnelView' %} {% set data = {'dataBlocks': dataBlocks} %} {{ parent() }} {% endblock content_data %}