@@ -17,6 +17,7 @@ as a ``DateTime`` object, a string, a timestamp or an array.
17
17
+----------------------+-----------------------------------------------------------------------------+
18
18
| Options | - `widget `_ |
19
19
| | - `input `_ |
20
+ | | - `with_minutes `_ |
20
21
| | - `with_seconds `_ |
21
22
| | - `hours `_ |
22
23
| | - `minutes `_ |
@@ -83,13 +84,21 @@ widget
83
84
84
85
The basic way in which this field should be rendered. Can be one of the following:
85
86
86
- * ``choice ``: renders two (or three if `with_seconds `_ is true) select inputs.
87
+ * ``choice ``: renders one, two (default) or three select inputs (hour, minute,
88
+ second), depending on the `with_minutes `_ and `with_seconds `_ options.
87
89
88
- * ``text ``: renders a two or three text inputs (hour, minute, second).
90
+ * ``text ``: renders one, two (default) or three text inputs (hour, minute,
91
+ second), depending on the `with_minutes `_ and `with_seconds `_ options.
89
92
90
- * ``single_text ``: renders a single input of type text . User's input will
93
+ * ``single_text ``: renders a single input of type `` time `` . User's input will
91
94
be validated against the form ``hh:mm `` (or ``hh:mm:ss `` if using seconds).
92
95
96
+ .. caution ::
97
+
98
+ Combining the widget type ``single_text `` and the `with_minutes `_ option
99
+ set to ``false `` can cause unexpected behavior in the client as the input
100
+ type ``time `` might not support selecting an hour only.
101
+
93
102
input
94
103
~~~~~
95
104
@@ -106,6 +115,8 @@ your underlying object. Valid values are:
106
115
The value that comes back from the form will also be normalized back into
107
116
this format.
108
117
118
+ .. include :: /reference/forms/types/options/with_minutes.rst.inc
119
+
109
120
.. include :: /reference/forms/types/options/with_seconds.rst.inc
110
121
111
122
.. include :: /reference/forms/types/options/hours.rst.inc
0 commit comments