{% extends 'OroUIBundle:actions:view.html.twig' %} {% import 'OroUIBundle::macros.html.twig' as UI %} {% import 'OroEntityConfigBundle::macros.html.twig' as entityConfig %} {% oro_title_set({params : {"%entity.subject%": entity.subject|default('N/A') }}) %} {% block navButtons %} {% if resource_granted('orocrm_case_comment_create') and resource_granted('orocrm_case_comment_view') %} {{ UI.clientButton({ 'id': 'add-case-comment-button', 'aCss': 'no-hash', 'iCss': 'icon-comment-alt hide-text', 'label' : 'orocrm.case.casecomment.action.add'|trans }) }} {% endif %} {% if resource_granted('EDIT', entity) %} {{ UI.editButton({ 'path' : path('orocrm_case_update', { id: entity.id }), 'entity_label': 'orocrm.case.caseentity.entity_label'|trans }) }} {% endif %} {% if resource_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('orocrm_case_api_delete_case', {'id': entity.id}), 'dataRedirect': path('orocrm_case_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-user', 'dataId': entity.id, 'entity_label': 'orocrm.case.caseentity.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('orocrm_case_index'), 'indexLabel': 'orocrm.case.caseentity.entity_plural_label'|trans, 'entityTitle': entity.subject } %} {{ parent() }} {% endblock pageHeader %} {% block content_data %} {%- set caseInformation -%}