Skip to content

Commit 12dc42c

Browse files
committed
minor #9572 Corrected Bootstrap 4 custom forms example code (kriswillis)
This PR was submitted for the 4.0 branch but it was merged into the 3.4 branch instead (closes #9572). Discussion ---------- Corrected Bootstrap 4 custom forms example code Commits ------- 4681148 Corrected Bootstrap 4 custom forms example code
2 parents 39496d5 + 4681148 commit 12dc42c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/bootstrap4.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ and ``checkbox-custom`` respectively.
9797

9898
.. code-block:: html+twig
9999

100-
{{ form_row(form.myRadio, {attr: {class: 'radio-custom'} }) }}
101-
{{ form_row(form.myCheckbox, {attr: {class: 'checkbox-custom'} }) }}
100+
{{ form_row(form.myRadio, {label_attr: {class: 'radio-custom'} }) }}
101+
{{ form_row(form.myCheckbox, {label_attr: {class: 'checkbox-custom'} }) }}
102102

103103
Labels and Errors
104104
-----------------

0 commit comments

Comments
 (0)