We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0012cef commit 8d54755Copy full SHA for 8d54755
templates/crud/form_theme.html.twig
@@ -3,7 +3,7 @@
3
4
{% block form_start %}
5
{% if form.vars.errors|length > 0 and 'ea_crud' in form.vars.block_prefixes|default([]) %}
6
- {{ form_errors(form, {attr: { class: 'global-invalid-feedback' }}) }}
+ {{ form_errors(form, {attr: { errorClass: 'global-invalid-feedback' }}) }}
7
{% endif %}
8
9
{{ parent() }}
@@ -22,7 +22,7 @@
22
{% block form_errors %}
23
{% if errors|length > 0 %}
24
{% for error in errors %}
25
- <div class="{{ attr.class|default('') }} invalid-feedback d-block">{{ error.message }}</div>
+ <div class="{{ attr.errorClass|default('') }} invalid-feedback d-block">{{ error.message }}</div>
26
{% endfor %}
27
28
{% endblock form_errors %}
0 commit comments