8000 Corrected Bootstrap 4 custom forms example code · symfony/symfony-docs@4681148 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4681148

Browse files
kriswillisjaviereguiluz
authored andcommitted
Corrected Bootstrap 4 custom forms example code
1 parent 39496d5 commit 4681148

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)
0