Skip to content

Commit

Permalink
Documented date_pattern variable of DateType
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Feb 18, 2014
1 parent 1a1497c commit e5fded9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
11 changes: 10 additions & 1 deletion reference/forms/types/date.rst
Expand Up @@ -158,4 +158,13 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
Field Variables
---------------

.. include:: /reference/forms/types/variables/date_table.rst.inc
+--------------+------------+----------------------------------------------------------------------+
| Variable | Type | Usage |
+==============+============+======================================================================+
| widget | ``mixed`` | The value of the `widget`_ option. |
+--------------+------------+----------------------------------------------------------------------+
| type | ``string`` | Only present when widget is ``single_text`` and HTML5 is activated, |
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
+--------------+------------+----------------------------------------------------------------------+
| date_pattern | ``string`` | A string with the date format to use. |
+--------------+------------+----------------------------------------------------------------------+
9 changes: 8 additions & 1 deletion reference/forms/types/datetime.rst
Expand Up @@ -154,6 +154,13 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
Field Variables
---------------

.. include:: /reference/forms/types/variables/date_table.rst.inc
+----------+------------+----------------------------------------------------------------------+
| Variable | Type | Usage |
+==========+============+======================================================================+
| widget | ``mixed`` | The value of the `widget`_ option. |
+----------+------------+----------------------------------------------------------------------+
| type | ``string`` | Only present when widget is ``single_text`` and HTML5 is activated, |
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
+----------+------------+----------------------------------------------------------------------+

.. _`RFC 3339`: http://tools.ietf.org/html/rfc3339
5 changes: 5 additions & 0 deletions reference/forms/types/time.rst
Expand Up @@ -166,3 +166,8 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
.. include:: /reference/forms/types/options/inherit_data.rst.inc

.. include:: /reference/forms/types/options/error_mapping.rst.inc

Field Variables
---------------

.. include:: /reference/forms/types/variables/date_table.rst.inc
8 changes: 0 additions & 8 deletions reference/forms/types/variables/date_table.rst.inc

This file was deleted.

0 comments on commit e5fded9

Please sign in to comment.