Skip to content

Commit

Permalink
Rewrite note a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jun 28, 2015
1 parent 32b1060 commit e495337
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cookbook/form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ fragment needed to render every part of a form:

.. caution::

If you use the Bootstrap form theme and want to render the parts of
a checkbox field individually, do not use the Twig function {{ form_label() }}.
Otherwise, it will render nothing.

When you use the Bootstrap form themes and render the fields manually,
calling ``form_label()`` for a checkbox/radio field doesn't show anything.
Due to Bootstrap internals, the label is already shown by ``form_widget()``.

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

0 comments on commit e495337

Please sign in to comment.