{% if savedId is defined and savedId %} {% set widgetResponse = { widget: { trigger: [{ eventBroker: 'widget', name: 'formSave', args: [savedId] }], } } %} {{ widgetResponse|json_encode|raw }} {% else %}
{% if form.vars.errors|length > 0 %} {% endif %}
{{ form_row(form.channel) }} {{ form_row(form.addressBook) }} {{ form_row(form.createEntities) }}
{{ form_row(form._token) }}
{{ oro_form_js_validation(form) }}
{% endif %}