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

Skip to content

Commit 8b97c1b

Browse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
Use a shortcut to acces help var in Twig template
1 parent 1b89f9d commit 8b97c1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
{# Help #}
282282

283283
{% block form_help -%}
284-
{% if form.vars.help is not empty %}
285-
<small class="form-text text-muted">{{ form.vars.help|raw }}</small>
284+
{% if help is not empty %}
285+
<small class="form-text text-muted">{{ help|raw }}</small>
286286
{% endif %}
287287
{%- endblock form_help %}

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
@@ -290,8 +290,8 @@
290290
{# Help #}
291291

292292
{% block form_help -%}
293-
{% if form.vars.help is not empty %}
294-
<p class="form-help">{{ form.vars.help|raw }}</p>
293+
{% if help is not empty %}
294+
<p class="form-help">{{ help|raw }}</p>
295295
{% endif %}
296296
{%- endblock form_help %}
297297

0 commit comments

Comments
 (0)