From 620239f24a1b824e4499f8ebc60962fd53ab86c9 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 30 Mar 2013 12:22:36 +0100 Subject: [PATCH] remove the pattern option in DateType --- reference/forms/types/date.rst | 3 --- reference/forms/types/options/date_pattern.rst.inc | 14 -------------- reference/forms/types/options/date_widget.rst.inc | 2 +- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 reference/forms/types/options/date_pattern.rst.inc diff --git a/reference/forms/types/date.rst b/reference/forms/types/date.rst index ea7f9dac43f..3251b411ae4 100644 --- a/reference/forms/types/date.rst +++ b/reference/forms/types/date.rst @@ -26,7 +26,6 @@ day, and year) or three select boxes (see the `widget_` option). | | - `months`_ | | | - `days`_ | | | - `format`_ | -| | - `pattern`_ | | | - `data_timezone`_ | | | - `user_timezone`_ | +----------------------+-----------------------------------------------------------------------------+ @@ -107,8 +106,6 @@ Alternatively, you can specify a string to be displayed for the "blank" value:: .. include:: /reference/forms/types/options/date_format.rst.inc -.. include:: /reference/forms/types/options/date_pattern.rst.inc - .. include:: /reference/forms/types/options/data_timezone.rst.inc .. include:: /reference/forms/types/options/user_timezone.rst.inc diff --git a/reference/forms/types/options/date_pattern.rst.inc b/reference/forms/types/options/date_pattern.rst.inc deleted file mode 100644 index 8df621ebe53..00000000000 --- a/reference/forms/types/options/date_pattern.rst.inc +++ /dev/null @@ -1,14 +0,0 @@ -pattern -~~~~~~~ - -**type**: ``string`` - -This option is only relevant when the `widget`_ is set to ``choice``. -The default pattern is based off the `format`_ option, and tries to -match the characters ``M``, ``d``, and ``y`` in the format pattern. If -no match is found, the default is the string ``{{ year }}-{{ month }}-{{ day }}``. -Tokens for this option include: - - * ``{{ year }}``: Replaced with the ``year`` widget - * ``{{ month }}``: Replaced with the ``month`` widget - * ``{{ day }}``: Replaced with the ``day`` widget \ No newline at end of file diff --git a/reference/forms/types/options/date_widget.rst.inc b/reference/forms/types/options/date_widget.rst.inc index 8fc89e3d09e..d4865e72b14 100644 --- a/reference/forms/types/options/date_widget.rst.inc +++ b/reference/forms/types/options/date_widget.rst.inc @@ -6,7 +6,7 @@ widget 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 `pattern`_ option. + in the `format`_ option. * ``text``: renders a three field input of type text (month, day, year).