{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroUI/macros.html.twig' as macros %} {% oro_title_set({params : {"%lead.name%": entity.name} }) %} {% block navButtons %} {% import '@OroUI/macros.html.twig' as UI %} {% if is_granted('EDIT', entity) %} {% if (isDisqualifyAllowed) %} {{ UI.ajaxButton({ 'dataUrl': path('oro_sales_lead_disqualify', {'id': entity.id}), 'aCss': 'btn btn-danger action-button no-hash', 'iCss': 'fa-ban', 'dataMethod': 'POST', 'label': 'oro.sales.lead.disqualify'|trans, 'title': 'oro.sales.lead.disqualify'|trans, 'dataRedirect': path('oro_sales_lead_view', {'id': entity.id}), 'successMessage': 'oro.sales.controller.lead.saved.message'|trans, 'errorMessage': 'oro.sales.lead.status.change_error_message'|trans }) }} {% endif %} {% if (isConvertToOpportunityAllowed) %} {{ UI.button({ 'path': path('oro_sales_lead_convert_to_opportunity', {'id': entity.id}), 'aCss': 'btn action-button', 'iCss': 'fa-usd', 'label': 'oro.sales.lead.convert_to_opportunity'|trans, 'title': 'oro.sales.lead.convert_to_opportunity'|trans, }) }} {% endif %} {{ UI.editButton({ 'path' : path('oro_sales_lead_update', { 'id': entity.id }), 'entity_label': 'oro.sales.lead.entity_label'|trans }) }} {% endif %} {% if is_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_api_delete_lead', {'id': entity.id}), 'dataRedirect': path('oro_sales_lead_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-lead', 'dataId': entity.id, 'entity_label': 'oro.sales.lead.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block stats %}