Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

remove the pattern option in DateType #2400

Merged
merged 1 commit into from

3 participants

@xabbuh
Collaborator
Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets #1546
@weaverryan weaverryan merged commit c8be770 into symfony:2.0
@weaverryan
Collaborator

Great job - thanks!

@xabbuh xabbuh deleted the xabbuh:fix-pattern-option-in-datetype-docs branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2013
  1. @xabbuh
This page is out of date. Refresh to see the latest.
View
3  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
View
14 reference/forms/types/options/date_pattern.rst.inc
@@ -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
View
2  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).
Something went wrong with that request. Please try again.