{% extends '@OroUI/actions/update.html.twig' %} {% oro_title_set({params : { "%entity.title%": entity.title, "%entityName%": 'oro.calendar.calendarevent.entity_label'|trans, "%parent.name%": entity.systemCalendar.name } }) %} {% set entityId = entity.id %} {% block navButtons %} {% import '@OroUI/macros.html.twig' as UI %} {% set html = UI.saveAndCloseButton({ 'route': 'oro_system_calendar_view', 'params': {'id': '$systemCalendar.id'} }) %} {% if is_granted('oro_system_calendar_event_create') %} {% set html = html ~ UI.saveAndNewButton({ 'route': 'oro_system_calendar_create' }) %} {% endif %} {# @TODO: Add check permission to update system calendar event #} {% if is_granted('oro_calendar_event_update') %} {% set html = html ~ UI.saveAndStayButton({ 'route': 'oro_system_calendar_event_update', 'params': {'id': '$id'} }) %} {% endif %} {{ UI.dropdownSaveButton({'html': html}) }} {{ UI.cancelButton(path('oro_system_calendar_view', {'id': entity.systemCalendar.id})) }} {% endblock %} {% block pageHeader %} {% if entityId %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_system_calendar_index'), 'indexLabel': 'oro.calendar.systemcalendar.entity_plural_label'|trans, 'entityTitle': entity.title|default('N/A'|trans), 'additional': [{ 'indexPath': path('oro_system_calendar_view', {'id': entity.systemCalendar.id}), 'indexLabel': entity.systemCalendar.name, }] } %} {{ parent() }} {% else %} {% set title = 'oro.ui.create_entity'|trans({'%entityName%': 'oro.calendar.calendarevent.entity_label'|trans}) %} {% include '@OroUI/page_title_block.html.twig' with { title: title } %} {% endif %} {% endblock pageHeader %} {% block content_data %} {% import '@OroUI/macros.html.twig' as UI %} {% set id = 'calendarevent-form' %} {% set calendarEventDateRange = { module: 'orocalendar/js/app/components/calendar-event-date-range-component', name: 'calendar-event-date-range', options: { nativeMode: isMobileVersion() } } %} {% set dataBlocks = [{ 'title': 'General Information'|trans, 'class': 'active', 'subblocks': [ { 'title': '', 'data': [ form_row(form.title), form_row(form.description), form_row(form.backgroundColor) ] }, { 'title': '', 'data': [ '