{% extends 'OroUIBundle:actions:view.html.twig' %} {% import 'OroUIBundle::macros.html.twig' as UI %} {% import 'OroCalendarBundle::macros.html.twig' as CalendarUI %} {% import 'OroCalendarBundle::invitations.html.twig' as invitations %} {% import 'OroEntityConfigBundle::macros.html.twig' as entityConfig %} {% import 'OroActivityBundle::macros.html.twig' as AC %} {% oro_title_set({params : {"%entity.title%": entity.title|default('N/A'|trans) }}) %} {% block navButtons %} {% import 'OroActivityBundle::macros.html.twig' as AC %} {% import 'OroUIBundle::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 'OroActivityBundle::macros.html.twig' as AC %} {# Display contexts targets in the activity view page #}