Skip to content

Commit cc992cc

Browse files
committed
Merge pull request #511 from chrishoult/master
Fixed an error in How to customize Form Rendering
2 parents ff2a502 + bea5dc5 commit cc992cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/form/form_customization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ form, modify the ``use`` tag and add the following:
840840
{{ block('base_field_widget') }}
841841

842842
{% if help is defined %}
843-
<span class="help">{{ help }}</div>
843+
<span class="help">{{ help }}</span>
844844
{% endif %}
845845
{% endblock %}
846846

@@ -855,7 +855,7 @@ the following:
855855
{{ parent() }}
856856

857857
{% if help is defined %}
858-
<span class="help">{{ help }}</div>
858+
<span class="help">{{ help }}</span>
859859
{% endif %}
860860
{% endblock %}
861861

@@ -875,7 +875,7 @@ original template:
875875

876876
<!-- Customization -->
877877
<?php if (isset($help)) : ?>
878-
<span class="help"><?php echo $view->escape($help) ?></div>
878+
<span class="help"><?php echo $view->escape($help) ?></span>
879879
<?php endif ?>
880880

881881
To render a help message below a field, pass in a ``help`` variable:

0 commit comments

Comments
 (0)