Skip to content

Commit e71d463

Browse files
committed
minor #10358 Mentioned the <optgroup> html tag explicitly (ThomasLandauer)
This PR was squashed before being merged into the 2.8 branch (closes #10358). Discussion ---------- Mentioned the <optgroup> html tag explicitly Commits ------- baaa8f1 Mentioned the <optgroup> html tag explicitly
2 parents 3dd38eb + baaa8f1 commit e71d463

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

reference/forms/types/choice.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ text that's shown to the user. But that can be completely customized via the
142142
Grouping Options
143143
----------------
144144

145-
You can easily "group" options in a select by passing a multi-dimensional choices array::
145+
You can easily group the ``<option>``s of a ``<select>`` into ``<optgroup>``s
146+
by passing a multi-dimensional ``choices`` array::
146147

147148
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
148149
// ...

reference/forms/types/options/group_by.rst.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ group_by
66

77
**type**: ``array``, ``callable`` or ``string`` **default**: ``null``
88

9-
You can easily "group" options in a select simply by passing a multi-dimensional
10-
array to ``choices``. See the :ref:`Grouping Options <form-choices-simple-grouping>`
11-
section about that.
9+
You can easily group the ``<option>``s of a ``<select>`` into ``<optgroup>``s,
10+
simply by passing a multi-dimensional array to ``choices``. See the
11+
:ref:`Grouping Options <form-choices-simple-grouping>` section about that.
1212

1313
The ``group_by`` option is an alternative way to group choices, which gives you
1414
a bit more flexibility.
@@ -36,7 +36,7 @@ Take the following example::
3636
));
3737

3838
This groups the dates that are within 3 days into "Soon" and everything else into
39-
a "Later" group:
39+
a "Later" ``<optgroup>``:
4040

4141
.. image:: /_images/reference/form/choice-example5.png
4242
:align: center

0 commit comments

Comments
 (0)