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

Skip to content

Commit fd53bc5

Browse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
Enable aria-described in row for all Templates
1 parent 98065d3 commit fd53bc5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
{% block form_row -%}
9292
<div class="form-group{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}">
9393
{{- form_label(form) -}}
94-
{{- form_widget(form) -}}
94+
{{- form_widget(form, { 'helpBlockDisplayed': true }) -}}
9595
{{- form_help(form) -}}
9696
{{- form_errors(form) -}}
9797
</div>

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
@@ -259,7 +259,7 @@
259259
{%- endif -%}
260260
<{{ element|default('div') }} class="form-group">
261261
{{- form_label(form) -}}
262-
{{- form_widget(form) -}}
262+
{{- form_widget(form, { 'helpBlockDisplayed': true }) -}}
263263
{{- form_help(form) -}}
264264
</{{ element|default('div') }}>
265265
{%- endblock form_row %}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</td>
88
<td>
99
{{- form_errors(form) -}}
10-
{{- form_widget(form) -}}
10+
{{- form_widget(form, { 'helpBlockDisplayed': true }) -}}
1111
{{- form_help(form) -}}
1212
</td>
1313
</tr>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
<div class="row">
271271
<div class="large-12 columns{% if (not compound or force_error|default(false)) and not valid %} error{% endif %}">
272272
{{ form_label(form) }}
273-
{{ form_widget(form) }}
273+
{{- form_widget(form, { 'helpBlockDisplayed': true }) -}}
274274
{{ form_help(form) }}
275275
{{ form_errors(form) }}
276276
</div>

0 commit comments

Comments
 (0)