Skip to content

Commit e181ab4

Browse files
committed
minor #5460 Finish #5291: Bootstrap form theme and checkboxes (anacicconi, WouterJ)
This PR was merged into the 2.6 branch. Discussion ---------- Finish #5291: Bootstrap form theme and checkboxes | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6+ | Fixed tickets | #4906 Replaces #5291 Commits ------- e495337 Rewrite note a bit 32b1060 Bootstrap form theme and checkboxes
2 parents 218780a + e495337 commit e181ab4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/form/form_customization.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ 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+
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()``.
122+
117123
In the next section you will learn how to customize a theme by overriding
118124
some or all of its fragments.
119125

0 commit comments

Comments
 (0)