Skip to content

Commit 76076cf

Browse files
committed
[#12584] Small tweaks
1 parent c109ac0 commit 76076cf

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

reference/forms/types/week.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ values for the year and week fields::
7777

7878
$builder->add('startDateTime', WeekType::class, [
7979
'placeholder' => [
80-
'year' => 'Year', 'week' => 'Week',
80+
'year' => 'Year',
81+
'week' => 'Week',
8182
]
8283
]);
8384

84-
8585
.. include:: /reference/forms/types/options/html5.rst.inc
8686

8787
input
@@ -92,7 +92,7 @@ input
9292
The format of the *input* data - i.e. the format that the date is stored
9393
on your underlying object. Valid values are:
9494

95-
* ``string`` (e.g. ``2011-W17``)
95+
* ``string`` (e.g. ``"2011-W17"``)
9696
* ``array`` (e.g. ``[2011, 17]``)
9797

9898
The value that comes back from the form will also be normalized back into
@@ -106,10 +106,8 @@ widget
106106
The basic way in which this field should be rendered. Can be one of the
107107
following:
108108

109-
* ``choice``: renders two select inputs.
110-
111-
* ``text``: renders a two field input of type ``text`` (year, week).
112-
109+
* ``choice``: renders two select inputs;
110+
* ``text``: renders a two field input of type ``text`` (year and week);
113111
* ``single_text``: renders a single input of type ``week``.
114112

115113
years
@@ -121,7 +119,6 @@ current year
121119
List of years available to the year field type. This option is only relevant
122120
when the ``widget`` option is set to ``choice``.
123121

124-
125122
.. include:: /reference/forms/types/options/weeks.rst.inc
126123

127124
Overridden Options
@@ -134,8 +131,7 @@ Overridden Options
134131

135132
The actual default value of this option depends on other field options:
136133

137-
* If ``widget`` is ``single_text``, then ``''``
138-
(empty string);
134+
* If ``widget`` is ``single_text``, then ``''`` (empty string);
139135
* Otherwise ``[]`` (empty array).
140136

141137
.. include:: /reference/forms/types/options/empty_data.rst.inc

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy