Skip to content

Commit e5fded9

Browse files
committed
Documented date_pattern variable of DateType
1 parent 1a1497c commit e5fded9

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

reference/forms/types/date.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,13 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
158158
Field Variables
159159
---------------
160160

161-
.. include:: /reference/forms/types/variables/date_table.rst.inc
161+
+--------------+------------+----------------------------------------------------------------------+
162+
| Variable | Type | Usage |
163+
+==============+============+======================================================================+
164+
| widget | ``mixed`` | The value of the `widget`_ option. |
165+
+--------------+------------+----------------------------------------------------------------------+
166+
| type | ``string`` | Only present when widget is ``single_text`` and HTML5 is activated, |
167+
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
168+
+--------------+------------+----------------------------------------------------------------------+
169+
| date_pattern | ``string`` | A string with the date format to use. |
170+
+--------------+------------+----------------------------------------------------------------------+

reference/forms/types/datetime.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
154154
Field Variables
155155
---------------
156156

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

159166
.. _`RFC 3339`: http://tools.ietf.org/html/rfc3339

reference/forms/types/time.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,8 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
166166
.. include:: /reference/forms/types/options/inherit_data.rst.inc
167167

168168
.. include:: /reference/forms/types/options/error_mapping.rst.inc
169+
170+
Field Variables
171+
---------------
172+
173+
.. include:: /reference/forms/types/variables/date_table.rst.inc

reference/forms/types/variables/date_table.rst.inc

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)