{% extends '@OroUI/actions/view.html.twig' %}
{% import '@OroDataGrid/macros.html.twig' as dataGrid %}
{% import '@OroActivity/macros.html.twig' as AC %}
{% oro_title_set({params : {"%subject%": entity.subject|default('N/A'|trans) }}) %}
{% block navButtons %}
{% import '@OroActivity/macros.html.twig' as AC %}
{% import '@OroUI/macros.html.twig' as UI %}
{% if is_granted('EDIT', entity) %}
{# Button for add context on the activity list item view page #}
{{ AC.addContextButton(entity) }}
{{ UI.editButton({
'path' : path('oro_call_update', { id: entity.id }),
'entity_label': 'oro.call.entity_label'|trans
}) }}
{% endif %}
{% if is_granted('DELETE', entity) %}
{{ UI.deleteButton({
'dataUrl': path('oro_api_delete_call', {'id': entity.id}),
'dataRedirect': path('oro_call_index'),
'aCss': 'no-hash remove-button',
'dataId': entity.id,
'entity_label': 'oro.call.entity_label'|trans
}) }}
{% endif %}
{% endblock navButtons %}
{% block stats %}
{% import '@OroActivity/macros.html.twig' as AC %}
{# Display contexts targets in the activity view page #}
{{ AC.activity_contexts(entity) }}
{% endblock %}
{% block pageHeader %}
{% set breadcrumbs = {
'entity': entity,
'indexPath': path('oro_call_index'),
'indexLabel': 'oro.call.entity_plural_label'|trans,
'entityTitle': entity.subject|default('N/A'|trans),
} %}
{{ parent() }}
{% endblock pageHeader %}
{% block content_data %}
{% set callInformationWidget %}
{{ oro_widget_render({
'widgetType': 'block',
'title': 'oro.call.widget.call_information'|trans,
'url': path('oro_call_widget_info', {id: entity.id, renderContexts: 0})
}) }}
{% endset %}
{% set dataBlocks = [
{
'title': 'oro.call.sections.general'|trans,
'class': 'active',
'subblocks': [
{'data' : [callInformationWidget]}
]
}
] %}
{% set id = 'callView' %}
{% set data = { 'dataBlocks': dataBlocks } %}
{{ parent() }}
{% endblock content_data %}