{% import '@OroUI/macros.html.twig' as UI %} {% if saved is defined and saved %} {% set widgetResponse = { widget: { message: 'oro.calendar.controller.event.saved.message'|trans, triggerSuccess: true, remove: true } } %} {{ widgetResponse|json_encode|raw }} {% else %}
{% if not form.vars.valid and form.vars.errors|length %} {% endif %} {% set calendarEventDateRange = { module: 'orocalendar/js/app/components/calendar-event-date-range-component', name: 'calendar-event-date-range', options: { nativeMode: isMobileVersion() } } %}
{% set rightColumn %}
{{ form_row(form.start) }} {{ form_row(form.end) }} {{ form_row(form.allDay) }}
{% if form.recurrence is defined %} {{ form_row(form.recurrence) }} {% endif %} {% endset %} {% set leftColumn %} {{ form_row(form.title) }} {{ form_row(form.description, { 'attr': {'class': 'narrow-text-field'} }) }} {{ form_row(form.backgroundColor) }} {% if form.calendarUid is defined %} {{ form_row(form.calendarUid) }} {% endif %} {{ form_row(form.attendees) }} {% if form.vars.value.recurrence is null %} {{ form_row(form.reminders) }} {% else %} {% do form.reminders.setRendered %} {% endif %} {{ form_rest(form) }} {% endset %}
{{ leftColumn }}
{{ rightColumn }}
{{ oro_form_js_validation(form) }}
{% endif %}