Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b97c1b

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

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.