Skip to content

Commit d9c5291

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix typos of the Dynamic Form Modification document [Form] Fix Bootstrap 5 section indentation remove form types from TOC that have been introduced in later versions
2 parents ef3ba3e + f4492c9 commit d9c5291

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

form/bootstrap5.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ For a checkbox/radio field, calling ``form_label()`` doesn't render anything.
9999
Due to Bootstrap internals, the label is already rendered by ``form_widget()``.
100100

101101
Inline Checkboxes and Radios
102-
----------------------------
102+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103103

104104
If you want to render your checkbox or radio fields `inline`_, you can add
105105
the ``checkbox-inline`` or ``radio-inline`` class (depending on your Symfony
@@ -136,7 +136,7 @@ Form type or ``ChoiceType`` configuration) to the label class.
136136
}) }}
137137
138138
Switches
139-
________
139+
~~~~~~~~
140140

141141
Bootstrap 5 allows to render checkboxes as `switches`_. You can enable this
142142
feature on your Symfony Form ``CheckboxType`` by adding the ``checkbox-switch``
@@ -176,7 +176,7 @@ class to the label:
176176
Switches only work with **checkbox**.
177177

178178
Input group
179-
___________
179+
-----------
180180

181181
To create `input group`_ in your Symfony Form, simply add the ``input-group``
182182
class to the ``row_attr`` option.

form/dynamic_form_modification.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Using an event listener, your form might look like this::
230230
}
231231

232232
The problem is now to get the current user and create a choice field that
233-
contains only this user's friends. This can be done injecting the ``Security``
233+
contains only this user's friends. This can be done by injecting the ``Security``
234234
service into the form type so you can get the current user object::
235235

236236
use Symfony\Component\Security\Core\Security;
@@ -490,7 +490,7 @@ The type would now look like::
490490
$sport = $event->getForm()->getData();
491491

492492
// since we've added the listener to the child, we'll have to pass on
493-
// the parent to the callback functions!
493+
// the parent to the callback function!
494494
$formModifier($event->getForm()->getParent(), $sport);
495495
}
496496
);
@@ -510,7 +510,7 @@ exactly the same things on a given form.
510510
the listener is bound to, but it allows modifications to its parent.
511511

512512
One piece that is still missing is the client-side updating of your form after
513-
the sport is selected. This should be handled by making an AJAX call back to
513+
the sport is selected. This should be handled by making an AJAX callback to
514514
your application. Assume that you have a sport meetup creation controller::
515515

516516
// src/Controller/MeetupController.php

0 commit comments

Comments
 (0)