@@ -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
8787input
9292The format of the *input * data - i.e. the format that the date is stored
9393on 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
9898The value that comes back from the form will also be normalized back into
@@ -106,10 +106,8 @@ widget
106106The basic way in which this field should be rendered. Can be one of the
107107following:
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
115113years
@@ -121,7 +119,6 @@ current year
121119List of years available to the year field type. This option is only relevant
122120when the ``widget `` option is set to ``choice ``.
123121
124-
125122.. include :: /reference/forms/types/options/weeks.rst.inc
126123
127124Overridden Options
@@ -134,8 +131,7 @@ Overridden Options
134131
135132The 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