File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 135
135
136
136
{% block form_widget_simple -%}
137
137
{% if type is not defined or type != ' hidden' %}
138
- {% if not form .vars .uses_autocomplete %}
138
+ {% if form . vars . uses_autocomplete is defined and not form .vars .uses_autocomplete %}
139
139
{%- set attr = attr | merge ({class : (attr .class |default (' ' ) ~ (type |default (' ' ) == ' file' ? ' custom-file-input' : ' o-input' ))|trim }) -%}
140
140
{% endif %}
141
141
{% endif %}
199
199
{%- endblock radio_widget %}
200
200
201
201
{% block choice_widget_expanded -%}
202
- {# <div {{ block('widget_container_attributes') }}> #}
202
+ <div {{ block (' widget_container_attributes' ) }}>
203
203
{%- for child in form %}
204
204
{{- form_widget(child , {
205
205
parent_label_class : label_attr .class |default (' ' ),
206
206
translation_domain : choice_translation_domain ,
207
207
valid : valid ,
208
208
}) -}}
209
209
{% endfor -%}
210
- {# </div> #}
210
+ </div >
211
211
{%- endblock choice_widget_expanded %}
212
212
213
213
{# Labels #}
247
247
{{- label | trans(label_translation_parameters , translation_domain )| raw -}}
248
248
{%- endif -%}
249
249
{%- endif -%}
250
- < /{{ element | default (' label' ) }}>
250
+ {% block form_label_errors %}{{- form_errors( form ) -}}{% endblock form_label_errors %} < /{{ element | default (' label' ) }}>
251
251
{%- else -%}
252
252
{%- if errors | length > 0 -%}
253
253
<div id =" {{ id }}_errors" class =" mb-2" >
You can’t perform that action at this time.
0 commit comments