Skip to content

Commit 50cd620

Browse files
committed
feature #4892 Add possible values for widget_type (XitasoChris)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #4892). Discussion ---------- Add possible values for widget_type | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | The documentation does not list which values are possible for widget_type. These two are the ones I extracted from the Symfony2 source code. Commits ------- e57c2ac terminate file with newline ef9e1bd move title back and move description to separate file as suggested in PR #4892 6b42685 move title out of included file as suggested in PR #4892 6fcdd89 Add possible values for widget_type
2 parents 49314e7 + e57c2ac commit 50cd620

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

reference/forms/types/datetime.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ for more details.
6161
date_widget
6262
~~~~~~~~~~~
6363

64-
**type**: ``string`` **default**: ``choice``
65-
66-
Defines the ``widget`` option for the :doc:`date </reference/forms/types/date>` type
64+
.. include:: /reference/forms/types/options/date_widget_description.rst.inc
6765

6866
.. include:: /reference/forms/types/options/days.rst.inc
6967

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
widget
22
~~~~~~
33

4-
**type**: ``string`` **default**: ``choice``
5-
6-
The basic way in which this field should be rendered. Can be one of the following:
7-
8-
* ``choice``: renders three select inputs. The order of the selects is defined
9-
in the `format`_ option.
10-
11-
* ``text``: renders a three field input of type ``text`` (month, day, year).
12-
13-
* ``single_text``: renders a single input of type ``date``. User's input is
14-
validated based on the `format`_ option.
4+
.. include:: /reference/forms/types/options/date_widget_description.rst.inc
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**type**: ``string`` **default**: ``choice``
2+
3+
The basic way in which this field should be rendered. Can be one of the following:
4+
5+
* ``choice``: renders three select inputs. The order of the selects is defined
6+
in the `format`_ option.
7+
8+
* ``text``: renders a three field input of type ``text`` (month, day, year).
9+
10+
* ``single_text``: renders a single input of type ``date``. User's input is
11+
validated based on the `format`_ option.

0 commit comments

Comments
 (0)