8000 clarify datetime type option deprecations by xabbuh · Pull Request #11235 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

clarify datetime type option deprecations #11235

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
Mar 28, 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
23 changes: 13 additions & 10 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ 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.
.. deprecated:: 4.3

Using the ``date_format`` option when the form is rendered as an HTML 5
datetime input is deprecated since Symfony 4.3.

date_label
~~~~~~~~~~
Expand All @@ -96,7 +98,10 @@ 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``.
.. deprecated:: 4.3

Using the ``date_widget`` option when the ``widget`` option is set to
``single_text`` is deprecated since Symfony 4.3.

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

Expand Down Expand Up @@ -139,7 +144,7 @@ used by the HTML5 ``datetime-local`` field. Keeping the default value will
cause the field to be rendered as an ``input`` field with ``type="datetime-local"``.
For more information on valid formats, see `Date/Time Format Syntax`_.

.. versionadded:: 4.3
.. deprecated:: 4.3

Using the ``format`` option when the ``html5`` option is enabled is deprecated
since Symfony 4.3.
Expand Down Expand Up @@ -203,7 +208,10 @@ 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``.
.. deprecated:: 4.3

Using the ``time_widget`` option when the ``widget`` option is set to
``single_text`` is deprecated since Symfony 4.3.

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

Expand All @@ -216,11 +224,6 @@ Defines the ``widget`` option for both the :doc:`DateType </reference/forms/type
and :doc:`TimeType </reference/forms/types/time>`. This can be overridden
with the `date_widget`_ and `time_widget`_ options.

.. versionadded:: 4.3

Using the ``date_format``, ``date_widget``, and ``time_widget`` options when
the ``widget`` option is set to ``single_text`` is deprecated since Symfony 4.3.

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

.. include:: /reference/forms/types/options/with_seconds.rst.inc
Expand Down
0