diff --git a/reference/forms/types/datetime.rst b/reference/forms/types/datetime.rst index e294d9ac464..f511574d25b 100644 --- a/reference/forms/types/datetime.rst +++ b/reference/forms/types/datetime.rst @@ -62,9 +62,7 @@ for more details. date_widget ~~~~~~~~~~~ -**type**: ``string`` **default**: ``choice`` - -Defines the ``widget`` option for the :doc:`date ` type +.. include:: /reference/forms/types/options/date_widget_description.rst.inc .. include:: /reference/forms/types/options/days.rst.inc diff --git a/reference/forms/types/options/date_widget.rst.inc b/reference/forms/types/options/date_widget.rst.inc index 2921bc57b55..028c10e5279 100644 --- a/reference/forms/types/options/date_widget.rst.inc +++ b/reference/forms/types/options/date_widget.rst.inc @@ -1,14 +1,4 @@ widget ~~~~~~ -**type**: ``string`` **default**: ``choice`` - -The basic way in which this field should be rendered. Can be one of the following: - -* ``choice``: renders three select inputs. The order of the selects is defined - in the `format`_ option. - -* ``text``: renders a three field input of type ``text`` (month, day, year). - -* ``single_text``: renders a single input of type ``date``. User's input is - validated based on the `format`_ option. +.. include:: /reference/forms/types/options/date_widget_description.rst.inc diff --git a/reference/forms/types/options/date_widget_description.rst.inc b/reference/forms/types/options/date_widget_description.rst.inc new file mode 100644 index 00000000000..865af8472ac --- /dev/null +++ b/reference/forms/types/options/date_widget_description.rst.inc @@ -0,0 +1,11 @@ +**type**: ``string`` **default**: ``choice`` + +The basic way in which this field should be rendered. Can be one of the following: + +* ``choice``: renders three select inputs. The order of the selects is defined + in the `format`_ option. + +* ``text``: renders a three field input of type ``text`` (month, day, year). + +* ``single_text``: renders a single input of type ``date``. User's input is + validated based on the `format`_ option.