{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% import '@OroCalendar/macros.html.twig' as CalendarUI %} {% import '@OroCalendar/invitations.html.twig' as invitations %} {% import '@OroEntityConfig/macros.html.twig' as entityConfig %} {% import '@OroActivity/macros.html.twig' as AC %} {% oro_title_set({params : {"%entity.title%": entity.title|default('N/A'|trans) }}) %} {% block navButtons %} {% import '@OroActivity/macros.html.twig' as AC %} {% import '@OroUI/macros.html.twig' as UI %} {% if entity.parent is empty and is_granted('EDIT', entity) %} {# Button for add context on the activity list item view page #} {{ AC.addContextButton(entity) }} {{ UI.editButton({ 'path' : path('oro_calendar_event_update', { id: entity.id }), 'entity_label': 'oro.calendar.calendarevent.entity_label'|trans }) }} {% endif %} {% if is_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_calendar_event_delete', {'id': entity.id, 'notifyAttendees': 'all'}), 'dataRedirect': path('oro_calendar_event_index'), 'aCss': 'no-hash remove-button', 'dataId': entity.id, 'entity_label': 'oro.calendar.calendarevent.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block stats %} {% import '@OroActivity/macros.html.twig' as AC %} {# Display contexts targets in the activity view page #}