Skip to content

clarify some DateTimeType widget options #11004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ Defines the ``format`` option that will be passed down to the date field.
See the :ref:`DateType's format option <reference-forms-type-date-format>`
for more details.

The ``date_format`` option does not have any effect when the form is rendered
as an HTML5 datetime input.

date_widget
~~~~~~~~~~~

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

The ``date_widget`` option is ignored when the ``widget`` option is set to ``single_text``.

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

placeholder
Expand Down Expand Up @@ -149,6 +154,8 @@ time_widget

Defines the ``widget`` option for the :doc:`TimeType </reference/forms/types/time>`.

The ``time_widget`` option is ignored when the ``widget`` option is set to ``single_text``.

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

widget
Expand Down