{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% import '@OroEntityConfig/macros.html.twig' as entityConfig %} {% import '@OroUser/macros.html.twig' as U %} {% oro_title_set({params : {"%entity.subject%": entity.subject|default('N/A'|trans) }}) %} {% block navButtons %} {% import '@OroUI/macros.html.twig' as UI %} {% if is_granted('oro_case_comment_create') and is_granted('oro_case_comment_view') %} {{ UI.clientButton({ 'id': 'add-case-comment-button', 'aCss': 'no-hash', 'iCss': 'fa-comment-o hide-text', 'label' : 'oro.case.casecomment.action.add'|trans, 'dataAttributes': { 'purpose': 'open-dialog-widget'} }) }} {% endif %} {% if is_granted('EDIT', entity) %} {{ UI.editButton({ 'path' : path('oro_case_update', { id: entity.id }), 'entity_label': 'oro.case.caseentity.entity_label'|trans }) }} {% endif %} {% if is_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_case_api_delete_case', {'id': entity.id}), 'dataRedirect': path('oro_case_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-user', 'dataId': entity.id, 'entity_label': 'oro.case.caseentity.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_case_index'), 'indexLabel': 'oro.case.caseentity.entity_plural_label'|trans, 'entityTitle': entity.subject } %} {{ parent() }} {% endblock pageHeader %} {% block content_data %} {% import '@OroUI/macros.html.twig' as UI %} {%- set caseInformation -%}