{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroEntityConfig/macros.html.twig' as entityConfig %} {% oro_title_set({params : { "%entityName%": entity_config.get('label')|default('N/A')|trans, "%recordName%": entity|oro_format_name|default('oro.entity.item'|trans({'%id%': entity.id})) }, }) %} {% block navButtons %} {% import '@OroUI/macros.html.twig' as UI %} {% if is_granted('EDIT', entity) %} {{ UI.editButton({ 'path': path('oro_entity_update', {entityName: entity_name, id: entity.id}), 'entity_label': entity_config.get('label')|default('N/A')|trans }) }} {% endif %} {% if is_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_entity_delete', {'entityName': entity_class, 'id': entity.id}), 'dataRedirect': path('oro_entity_index', {'entityName': entity_class}), 'aCss': 'no-hash remove-button', 'dataId': entity.id, 'id': 'btn-remove-account', 'entity_label': entity_config.get('label')|default('N/A')|trans }) }} {% endif %} {% endblock navButtons %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_entityconfig_index'), 'indexLabel': 'oro.entity.plural_label'|trans, 'entityTitle': entity|oro_format_name|default('oro.entity.item'|trans({'%id%': entity.id})), 'additional': [{ 'indexPath' : path('oro_entity_index', {entityName: entity_name}), 'indexLabel' : entity_config.get('label')|default('N/A')|trans }] }%} {{ parent() }} {% endblock pageHeader %} {% block stats %} {% endblock stats%} {% block content_data %} {% import '@OroEntityConfig/macros.html.twig' as entityConfig %} {% set data = { 'dataBlocks': [{ 'title': 'General'|trans, 'class': 'active', 'subblocks': [{ 'title': 'General Information'|trans, 'data': [entityConfig.renderDynamicFields(entity, entity_class)] }] }] } %} {% set id = 'entityView' %} {{ parent() }} {% endblock content_data %}