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

Skip to content

Commit 1b89f9d

Browse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
Add a template fot div_layout
1 parent c8914f5 commit 1b89f9d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,14 @@
287287

288288
{%- block button_label -%}{%- endblock -%}
289289

290+
{# Help #}
291+
292+
{% block form_help -%}
293+
{% if form.vars.help is not empty %}
294+
<p class="form-help">{{ form.vars.help|raw }}</p>
295+
{% endif %}
296+
{%- endblock form_help %}
297+
290298
{# Rows #}
291299

292300
{%- block repeated_row -%}
@@ -302,6 +310,7 @@
302310
{{- form_label(form) -}}
303311
{{- form_errors(form) -}}
304312
{{- form_widget(form) -}}
313+
{{- form_help(form) -}}
305314
</div>
306315
{%- endblock form_row -%}
307316

0 commit comments

Comments
 (0)