Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 485c929

Browse files
Nyholmnicolas-grekas
authored andcommitted
Make sure one can easily remove errors in labels
1 parent 58676fc commit 485c929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{% set label = name|humanize %}
9494
{%- endif -%}
9595
{%- endif -%}
96-
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}{{- form_errors(form) -}}</{{ element|default('label') }}>
96+
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}{% block form_label_errors %}{{- form_errors(form) -}}{% endblock form_label_errors %}</{{ element|default('label') }}>
9797
{%- endif -%}
9898
{%- endblock form_label -%}
9999

0 commit comments

Comments
 (0)