@@ -77,11 +77,11 @@ values for the year and week fields::
77
77
78
78
$builder->add('startDateTime', WeekType::class, [
79
79
'placeholder' => [
80
- 'year' => 'Year', 'week' => 'Week',
80
+ 'year' => 'Year',
81
+ 'week' => 'Week',
81
82
]
82
83
]);
83
84
84
-
85
85
.. include :: /reference/forms/types/options/html5.rst.inc
86
86
87
87
input
92
92
The format of the *input * data - i.e. the format that the date is stored
93
93
on your underlying object. Valid values are:
94
94
95
- * ``string `` (e.g. ``2011-W17 ``)
95
+ * ``string `` (e.g. ``" 2011-W17" ``)
96
96
* ``array `` (e.g. ``[2011, 17] ``)
97
97
98
98
The value that comes back from the form will also be normalized back into
@@ -106,10 +106,8 @@ widget
106
106
The basic way in which this field should be rendered. Can be one of the
107
107
following:
108
108
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);
113
111
* ``single_text ``: renders a single input of type ``week ``.
114
112
115
113
years
@@ -121,7 +119,6 @@ current year
121
119
List of years available to the year field type. This option is only relevant
122
120
when the ``widget `` option is set to ``choice ``.
123
121
124
-
125
122
.. include :: /reference/forms/types/options/weeks.rst.inc
126
123
127
124
Overridden Options
@@ -134,8 +131,7 @@ Overridden Options
134
131
135
132
The actual default value of this option depends on other field options:
136
133
137
- * If ``widget `` is ``single_text ``, then ``'' ``
138
- (empty string);
134
+ * If ``widget `` is ``single_text ``, then ``'' `` (empty string);
139
135
* Otherwise ``[] `` (empty array).
140
136
141
137
.. include :: /reference/forms/types/options/empty_data.rst.inc
0 commit comments