10000 Patches end of page by alexislefebvre · Pull Request #3459 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Patches end of page #3459

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

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d9c6a85
add empty_data option where required option is used
xabbuh Jan 3, 2014
9b1aab8
add missing code-block directive
xabbuh Jan 3, 2014
244d756
add note when forbidding access to anonymous users on custom authenti…
cordoval Jan 4, 2014
2888d00
answer some questions and clarify the best chapter imo from the symfo…
cordoval Jan 4, 2014
771b862
address comments from @WouterJ
cordoval Jan 5, 2014
8cfb850
[Reference][Form Types] Document "with_minutes" time/datetime option
bicpi Jan 6, 2014
1e88b9d
Fix "versionadded" position
bicpi Jan 6, 2014
2156545
add max_length to form field type
nykopol Jan 6, 2014
391fe30
fix typo in previous commit
nykopol Jan 7, 2014
d6800d3
fix typo in previous commit
nykopol Jan 7, 2014
b53a227
fix last typo on max length option
nykopol Jan 7, 2014
e255de9
minor #3429 [Reference][Form Types] Document "with_minutes" time/date…
weaverryan Jan 7, 2014
559a227
Fix issue #3442
ifdattic Jan 8, 2014
8f3e6c7
[#3407] Adding a missing section via tip from @WouterJ
weaverryan Jan 9, 2014
e1d344f
[Contributing] Clarify the rebase operation
lemoinem Jan 4, 2014
4544ea1
[Contributing] Fix single vs double backtick issues
lemoinem Jan 4, 2014
d5009c1
[Contributing] Add PSR-1 and 2 links
lemoinem Jan 4, 2014
1a670d1
[Contributing] Replace mentions of 2.2 for 2.3
lemoinem Jan 4, 2014
806a86f
[Contributing] Fix "When you finish" => "When you are finished"
lemoinem Jan 6, 2014
13222c9
[Contributing] Replace HEAD~3 by upstream/master
lemoinem Jan 6, 2014
2be3f52
minor #3422 [Cookbook][Custom Authentication Provider] add a note of …
weaverryan Jan 9, 2014
26a7b1b
bug #3423 [Session Configuration] add clarifying notes on session sav…
weaverryan Jan 9, 2014
4988118
bug #3432 [Reference][Form Types] Add "max_length" option in form typ…
weaverryan Jan 9, 2014
0b2a491
bug #3414 add missing code-block directive (xabbuh)
weaverryan Jan 9, 2014
69a2ed1
the data_class option was not introduced in 2.4
xabbuh Jan 3, 2014
26b8146
bug #3415 [#3334] the data_class option was not introduced in 2.4 (xa…
weaverryan Jan 9, 2014
1e0311e
minor #3416 add empty_data option where required option is used (xabbuh)
weaverryan Jan 9, 2014
4fd7022
Removed code references to Symfony Standard Distribution
dcsg Jan 9, 2014
9e2e64b
bug #3427 Removed code references to Symfony Standard Distribution (d…
weaverryan Jan 9, 2014
d9d7c58
bug #3444 Fix issue #3442 (ifdattic)
weaverryan Jan 10, 2014
42c80d1
bug #3448 Overridden tweak (weaverryan)
weaverryan Jan 10, 2014
d5ab588
Removed spaces at the beginning of the final paragraph
alexislefebvre Jan 10, 2014
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
3 changes: 3 additions & 0 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ data can be a ``DateTime`` object, a string, a timestamp or an array.
| | - `years`_ |
| | - `months`_ |
| | - `days`_ |
| | - `with_minutes`_ |
| | - `with_seconds`_ |
| | - `model_timezone`_ |
| | - `view_timezone`_ |
Expand Down Expand Up @@ -109,6 +110,8 @@ for more details.

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

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

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

.. include:: /reference/forms/types/options/model_timezone.rst.inc
Expand Down
10 changes: 10 additions & 0 deletions reference/forms/types/options/with_minutes.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. versionadded:: 2.2
The ``with_minutes`` option was introduced in Symfony 2.2.

with_minutes
~~~~~~~~~~~~

**type**: ``Boolean`` **default**: ``true``

Whether or not to include minutes in the input. This will result in an additional
input to capture minutes.
17 changes: 14 additions & 3 deletions reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ as a ``DateTime`` object, a string, a timestamp or an array.
+----------------------+-----------------------------------------------------------------------------+
| Options | - `widget`_ |
| | - `input`_ |
| | - `with_minutes`_ |
| | - `with_seconds`_ |
| A776 | - `hours`_ |
| | - `minutes`_ |
Expand Down Expand Up @@ -83,13 +84,21 @@ widget

The basic way in which this field should be rendered. Can be one of the following:

* ``choice``: renders two (or three if `with_seconds`_ is true) select inputs.
* ``choice``: renders one, two (default) or three select inputs (hour, minute,
second), depending on the `with_minutes`_ and `with_seconds`_ options.

* ``text``: renders a two or three text inputs (hour, minute, second).
* ``text``: renders one, two (default) or three text inputs (hour, minute,
second), depending on the `with_minutes`_ and `with_seconds`_ options.

* ``single_text``: renders a single input of type text. User's input will
* ``single_text``: renders a single input of type ``time``. User's input will
be validated against the form ``hh:mm`` (or ``hh:mm:ss`` if using seconds).

.. caution::

Combining the widget type ``single_text`` and the `with_minutes`_ option
set to ``false`` can cause unexpected behavior in the client as the input
type ``time`` might not support selecting an hour only.

input
~~~~~

Expand All @@ -106,6 +115,8 @@ your underlying object. Valid values are:
The value that comes back from the form will also be normalized back into
this format.

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

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

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