{% extends 'OroUIBundle:actions:view.html.twig' %} {% import 'OroUIBundle::macros.html.twig' as macros %} {% set fullname = entity|oro_format_name|default('N/A'|trans) %} {% oro_title_set({params : {"%customer.name%": fullname} }) %} {% block navButtons %} {% if entity.channel.transport.adminUrl|default(false) %} {{ UI.clientButton({ 'dataUrl': path('orocrm_magento_customer_orderplace', {'id': entity.id }), 'aCss': 'no-hash', 'iCss': 'icon-money', 'dataId': entity.id, 'label' : 'orocrm.magento.customer.create_order'|trans, 'widget' : { 'type' : 'dialog', 'options' : { 'alias': 'transaction-dialog', 'stateEnabled': false, 'incrementalPosition': true, 'loadingMaskEnabled': false, 'dialogOptions' : { 'dialogClass': 'place-order-transaction-dialog', 'title' : 'orocrm.magento.customer.create_order'|trans, 'allowMaximize': true, 'allowMinimize': false, 'width': 1000, 'height': 600, 'modal': true, 'autoResize': true } } } }) }} {% endif %} {{ parent() }} {% endblock navButtons %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('orocrm_magento_customer_index'), 'indexLabel': 'orocrm.magento.customer.entity_plural_label'|trans, 'entityTitle': fullname } %} {{ parent() }} {% endblock pageHeader %} {% block stats %} {{ parent() }}