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

Skip to content

Commit 32b1060

Browse files
author
Ana Cicconi
committed
Bootstrap form theme and checkboxes
1 parent 91f22e9 commit 32b1060

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/form/form_customization.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ fragment needed to render every part of a form:
114114
but the CSS classes applied are the ones used to display the forms horizontally
115115
(i.e. the label and the widget in the same row).
116116

117+
.. caution::
118+
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+
123+
117124
In the next section you will learn how to customize a theme by overriding
118125
some or all of its fragments.
119126

0 commit comments

Comments
 (0)