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

Skip to content

Commit e495337

Browse files
committed
Rewrite note a bit
1 parent 32b1060 commit e495337

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cookbook/form/form_customization.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ fragment needed to render every part of a form:
116116

117117
.. caution::
118118

119-
If you use the Bootstrap form theme and want to render the parts of
120-
a checkbox field individually, do not use the Twig function {{ form_label() }}.
121-
Otherwise, it will render nothing.
122-
119+
When you use the Bootstrap form themes and render the fields manually,
120+
calling ``form_label()`` for a checkbox/radio field doesn't show anything.
121+
Due to Bootstrap internals, the label is already shown by ``form_widget()``.
123122

124123
In the next section you will learn how to customize a theme by overriding
125124
some or all of its fragments.

0 commit comments

Comments
 (0)