Skip to content

Commit e4d6cdd

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Fix typos of the Dynamic Form Modification document [Form] Fix Bootstrap 5 section indentation Proper line numbers for a Basic Controller example remove form types from TOC that have been introduced in later versions
2 parents 41e4c9b + d9c5291 commit e4d6cdd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ This controller is pretty straightforward:
5959
* *line 7*: The class can technically be called anything, but it's suffixed
6060
with ``Controller`` by convention.
6161

62-
* *line 12*: The action method is allowed to have a ``$max`` argument thanks to the
62+
* *line 10*: The action method is allowed to have a ``$max`` argument thanks to the
6363
``{max}`` :doc:`wildcard in the route </routing>`.
6464

65-
* *line 16*: The controller creates and returns a ``Response`` object.
65+
* *line 14*: The controller creates and returns a ``Response`` object.
6666

6767
.. index::
6868
single: Controller; Routes and controllers

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)