{% if saved %} {% set widgetResponse = { widget: { trigger: [{ eventBroker: 'widget', name: 'formSave', args: [form.vars.value.id], }], } } %} {{ widgetResponse|json_encode|raw }} {% else %} {# Quick address update form template #}
{% if not form.vars.valid and form_errors(form) %} {% endif %}
{{ form_widget(form) }}
{{ oro_form_js_validation(form) }}
{% endif %}