diff --git a/src/BootstrapAdminUi/templates/shared/crud/common/content/form.html.twig b/src/BootstrapAdminUi/templates/shared/crud/common/content/form.html.twig index dacf3d35..43b2c5a9 100644 --- a/src/BootstrapAdminUi/templates/shared/crud/common/content/form.html.twig +++ b/src/BootstrapAdminUi/templates/shared/crud/common/content/form.html.twig @@ -9,19 +9,21 @@ {% if form is not null %} {% form_theme form '@SyliusBootstrapAdminUi/shared/form_theme.html.twig' %} -
- {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': form.vars.id}}) }} -
- {% if hookable_metadata.configuration.method is defined %} - - {% elseif form.vars.data.id|default(null) is not null %} - - {% endif %} - {{ form_errors(form) }} - {{ form_widget(form._token) }} +
+
+ {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': form.vars.id}}) }} +
+ {% if hookable_metadata.configuration.method is defined %} + + {% elseif form.vars.data.id|default(null) is not null %} + + {% endif %} + {{ form_errors(form) }} + {{ form_widget(form._token) }} - {% hook 'form' with { form, resource } %} + {% hook 'form' with { form, resource } %} +
+ {{ form_end(form, {render_rest: hookable_metadata.configuration.render_rest|default(false)}) }}
- {{ form_end(form, {render_rest: hookable_metadata.configuration.render_rest|default(false)}) }}
{% endif %} diff --git a/src/BootstrapAdminUi/templates/shared/crud/common/content/form_error_alert.html.twig b/src/BootstrapAdminUi/templates/shared/crud/common/content/form_error_alert.html.twig index 5db1f4ce..9ea60dd5 100644 --- a/src/BootstrapAdminUi/templates/shared/crud/common/content/form_error_alert.html.twig +++ b/src/BootstrapAdminUi/templates/shared/crud/common/content/form_error_alert.html.twig @@ -1,8 +1,8 @@ {% set form = hookable_metadata.context.form|default(null) %} -{% if form is not null and form.vars.valid == false %} -
-