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

Skip to content

Commit e08f544

Browse files
authored
Allows to change element for form_help block
1 parent 2fe2b5a commit e08f544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@
329329
{% block form_help -%}
330330
{%- if help is not empty -%}
331331
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-text')|trim}) -%}
332-
<div id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
332+
<{{ element|default('div') }} id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
333333
{{- block('form_help_content') -}}
334-
</div>
334+
</{{ element|default('div') }}>
335335
{%- endif -%}
336336
{%- endblock form_help %}
337337

0 commit comments

Comments
 (0)