{% block oro_calendar_choice_row %} {% if choices is not empty %} {% if choices|length > 1 %} {{ form_row(form) }} {% else %} {{ form_row(form, {'label': false}) }} {% endif %} {% endif %} {% endblock %} {% block oro_calendar_choice_template_row %} <% var {{ name }}Template = ''; if ({{ name }}TemplateType === 'single') { {{ name }}Template = ' {%- apply spaceless %}
{% endapply -%} '; } else if ({{ name }}TemplateType === 'multiple') { {{ name }}Template = ' {%- apply spaceless %}
{% endapply -%} '; } %> <% if ({{ name }}Template) { %> <%= _.template({{ name }}Template.replace(/\< %/g, '<' + '%').replace(/% \>/g, '%' + '>'))({calendars: calendars}) %> <% } %> {% endblock %} {% block oro_calendar_event_recurrence_row %} {% import '@OroUI/macros.html.twig' as UI %} {% set modelAttrs = {} %} {% set errors = [] %} {% for field in form.children %} {% if field.vars.errors is not empty %} {% set fieldErrors = [] %} {% for error in field.vars.errors %} {% set fieldErrors = fieldErrors|merge([error.message]) %} {% endfor %} {% set errors = errors|merge([{ label: field.vars.label|trans, name: field.vars.name, messages: fieldErrors }]) %} {% endif %} {% if field.vars.value is not empty %} {% set modelAttrs = modelAttrs|merge({(field.vars.name): field.vars.value}) %} {% endif %} {% do field.setRendered %} {% endfor %} {{ form_errors(form) }}
{% endblock %}