From b37314be5ffa7c1393687abbc59ba17e11aafda9 Mon Sep 17 00:00:00 2001 From: Adam Szaraniec Date: Fri, 6 Feb 2015 21:24:22 +0100 Subject: [PATCH] code style standardization on form type options --- reference/configuration/framework.rst | 10 +++++----- reference/configuration/security.rst | 8 ++++---- reference/configuration/swiftmailer.rst | 4 ++-- reference/constraints/Choice.rst | 4 ++-- reference/constraints/Collection.rst | 8 ++++---- reference/constraints/Email.rst | 4 ++-- reference/constraints/Issn.rst | 4 ++-- reference/constraints/Regex.rst | 2 +- reference/constraints/UniqueEntity.rst | 2 +- reference/forms/types/choice.rst | 6 +++--- reference/forms/types/collection.rst | 14 +++++++------- reference/forms/types/entity.rst | 2 +- reference/forms/types/options/attr.rst.inc | 2 +- reference/forms/types/options/button_attr.rst.inc | 2 +- reference/forms/types/options/by_reference.rst.inc | 2 +- .../forms/types/options/cascade_validation.rst.inc | 2 +- reference/forms/types/options/constraints.rst.inc | 2 +- reference/forms/types/options/data.rst.inc | 2 +- reference/forms/types/options/empty_value.rst.inc | 2 +- .../forms/types/options/error_bubbling.rst.inc | 2 +- .../forms/types/options/error_mapping.rst.inc | 2 +- reference/forms/types/options/expanded.rst.inc | 2 +- reference/forms/types/options/multiple.rst.inc | 2 +- reference/forms/types/options/read_only.rst.inc | 2 +- reference/forms/types/options/required.rst.inc | 2 +- reference/forms/types/options/trim.rst.inc | 2 +- reference/forms/types/options/with_minutes.rst.inc | 2 +- reference/forms/types/options/with_seconds.rst.inc | 2 +- reference/forms/types/password.rst | 2 +- reference/forms/types/submit.rst | 2 +- reference/forms/types/time.rst | 4 ++-- .../types/variables/check_or_radio_table.rst.inc | 2 +- 32 files changed, 55 insertions(+), 55 deletions(-) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 5c871545081..748e25ac69e 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -72,7 +72,7 @@ http_method_override .. versionadded:: 2.3 The ``http_method_override`` option was introduced in Symfony 2.3. -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` This determines whether the ``_method`` request parameter is used as the intended HTTP method on POST requests. If enabled, the @@ -143,7 +143,7 @@ is set, then the ``ide`` option will be ignored. test ~~~~ -**type**: ``Boolean`` +**type**: ``boolean`` If this configuration parameter is present (and not ``false``), then the services related to testing your application (e.g. ``test.client``) are loaded. @@ -251,14 +251,14 @@ to the cookie specification. cookie_secure ............. -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` This determines whether cookies should only be sent over secure connections. cookie_httponly ............... -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` This determines whether cookies should only be accessible through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such @@ -552,7 +552,7 @@ to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInt enable_annotations .................. -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If this option is enabled, validation constraints can be defined using annotations. diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 12b443987d7..367996542c3 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -276,7 +276,7 @@ a separate firewall just for ``check_path`` URL). use_forward ........... -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If you'd like the user to be forwarded to the login form instead of being redirected, set this option to ``true``. @@ -302,7 +302,7 @@ will look for a POST parameter with this name. post_only ......... -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` By default, you must submit your login form to the ``check_path`` URL as a POST request. By setting this option to ``false``, you can send a GET request @@ -311,10 +311,10 @@ to the ``check_path`` URL. Redirecting after Login ~~~~~~~~~~~~~~~~~~~~~~~ -* ``always_use_default_target_path`` (type: ``Boolean``, default: ``false``) +* ``always_use_default_target_path`` (type: ``boolean``, default: ``false``) * ``default_target_path`` (type: ``string``, default: ``/``) * ``target_path_parameter`` (type: ``string``, default: ``_target_path``) -* ``use_referer`` (type: ``Boolean``, default: ``false``) +* ``use_referer`` (type: ``boolean``, default: ``false``) .. _reference-security-pbkdf2: diff --git a/reference/configuration/swiftmailer.rst b/reference/configuration/swiftmailer.rst index 3aaf52b858a..2d6db20aace 100644 --- a/reference/configuration/swiftmailer.rst +++ b/reference/configuration/swiftmailer.rst @@ -159,7 +159,7 @@ on the ``X-Swift-To``, ``X-Swift-Cc`` and ``X-Swift-Bcc`` headers. disable_delivery ~~~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If true, the ``transport`` will automatically be set to ``null``, and no emails will actually be delivered. @@ -167,7 +167,7 @@ emails will actually be delivered. logging ~~~~~~~ -**type**: ``Boolean`` **default**: ``%kernel.debug%`` +**type**: ``boolean`` **default**: ``%kernel.debug%`` If true, Symfony's data collector will be activated for Swift Mailer and the information will be available in the profiler. diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index aab73b59c44..43b3d28078a 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -281,7 +281,7 @@ for details on its usage. multiple ~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If this option is true, the input value is expected to be an array instead of a single, scalar value. The constraint will check that each value of @@ -344,7 +344,7 @@ too many options per the `max`_ option. strict ~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If true, the validator will also check the type of the input value. Specifically, this value is passed to as the third argument to the PHP :phpfunction:`in_array` method diff --git a/reference/constraints/Collection.rst b/reference/constraints/Collection.rst index 2c93325da2f..662b85d0fd4 100644 --- a/reference/constraints/Collection.rst +++ b/reference/constraints/Collection.rst @@ -298,7 +298,7 @@ be executed against that element of the collection. allowExtraFields ~~~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: false +**type**: ``boolean`` **default**: false If this option is set to ``false`` and the underlying collection contains one or more elements that are not included in the `fields`_ option, a validation @@ -307,14 +307,14 @@ error will be returned. If set to ``true``, extra fields are ok. extraFieldsMessage ~~~~~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``The fields {{ fields }} were not expected.`` +**type**: ``boolean`` **default**: ``The fields {{ fields }} were not expected.`` The message shown if `allowExtraFields`_ is false and an extra field is detected. allowMissingFields ~~~~~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: false +**type**: ``boolean`` **default**: false If this option is set to ``false`` and one or more fields from the `fields`_ option are not present in the underlying collection, a validation error will @@ -324,7 +324,7 @@ option are not present in the underlying collection. missingFieldsMessage ~~~~~~~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``The fields {{ fields }} are missing.`` +**type**: ``boolean`` **default**: ``The fields {{ fields }} are missing.`` The message shown if `allowMissingFields`_ is false and one or more fields are missing from the underlying collection. diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index 85e15ec85d6..26587773c0d 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -99,7 +99,7 @@ This message is shown if the underlying data is not a valid email address. checkMX ~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If true, then the :phpfunction:`checkdnsrr` PHP function will be used to check the validity of the MX record of the host of the given email. @@ -107,7 +107,7 @@ check the validity of the MX record of the host of the given email. checkHost ~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If true, then the :phpfunction:`checkdnsrr` PHP function will be used to check the validity of the MX *or* the A *or* the AAAA record of the host diff --git a/reference/constraints/Issn.rst b/reference/constraints/Issn.rst index 0c200a73490..3c13b4a3b12 100644 --- a/reference/constraints/Issn.rst +++ b/reference/constraints/Issn.rst @@ -90,7 +90,7 @@ The message shown if the given value is not a valid ISSN. caseSensitive ~~~~~~~~~~~~~ -**type**: ``Boolean`` default: ``false`` +**type**: ``boolean`` default: ``false`` The validator will allow ISSN values to end with a lower case 'x' by default. When switching this to ``true``, the validator requires an upper case 'X'. @@ -98,7 +98,7 @@ When switching this to ``true``, the validator requires an upper case 'X'. requireHyphen ~~~~~~~~~~~~~ -**type**: ``Boolean`` default: ``false`` +**type**: ``boolean`` default: ``false`` The validator will allow non hyphenated ISSN values by default. When switching this to ``true``, the validator requires a hyphenated ISSN value. diff --git a/reference/constraints/Regex.rst b/reference/constraints/Regex.rst index ab6e98134d4..7a1a24407d9 100644 --- a/reference/constraints/Regex.rst +++ b/reference/constraints/Regex.rst @@ -264,7 +264,7 @@ Setting ``htmlPattern`` to false will disable client side validation. match ~~~~~ -**type**: ``Boolean`` default: ``true`` +**type**: ``boolean`` default: ``true`` If ``true`` (or not set), this validator will pass if the given string matches the given `pattern`_ regular expression. However, when this option is set diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index c2dd5e0f439..aa5411cac30 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -257,7 +257,7 @@ Now, the message would be bound to the ``port`` field with this configuration. ignoreNull ~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` .. versionadded:: 2.1 The ``ignoreNull`` option was introduced in Symfony 2.1. diff --git a/reference/forms/types/choice.rst b/reference/forms/types/choice.rst index a5757116817..098937811ca 100644 --- a/reference/forms/types/choice.rst +++ b/reference/forms/types/choice.rst @@ -192,9 +192,9 @@ Field Variables +------------------------+--------------+-------------------------------------------------------------------+ | Variable | Type | Usage | +========================+==============+===================================================================+ -| multiple | ``Boolean`` | The value of the `multiple`_ option. | +| multiple | ``boolean`` | The value of the `multiple`_ option. | +------------------------+--------------+-------------------------------------------------------------------+ -| expanded | ``Boolean`` | The value of the `expanded`_ option. | +| expanded | ``boolean`` | The value of the `expanded`_ option. | +------------------------+--------------+-------------------------------------------------------------------+ | preferred_choices | ``array`` | A nested array containing the ``ChoiceView`` objects of | | | | choices which should be presented to the user with priority. | @@ -210,7 +210,7 @@ Field Variables | is_selected | ``callable`` | A callable which takes a ``ChoiceView`` and the selected value(s) | | | | and returns whether the choice is in the selected value(s). | +------------------------+--------------+-------------------------------------------------------------------+ -| empty_value_in_choices | ``Boolean`` | Whether the empty value is in the choice list. | +| empty_value_in_choices | ``boolean`` | Whether the empty value is in the choice list. | +------------------------+--------------+-------------------------------------------------------------------+ .. tip:: diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index 3bc2f6453d6..35a63851c4d 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -214,7 +214,7 @@ Field Options allow_add ~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If set to ``true``, then if unrecognized items are submitted to the collection, they will be added as new items. The ending array will contain the existing @@ -235,7 +235,7 @@ client side. For more information, see the above example and :ref:`cookbook-form allow_delete ~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If set to ``true``, then if an existing item is not contained in the submitted data, it will be correctly absent from the final array of items. This means @@ -280,7 +280,7 @@ you'd need to at least pass the ``choices`` option to the underlying type:: prototype ~~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` This option is useful when using the `allow_add`_ option. If ``true`` (and if `allow_add`_ is also ``true``), a special "prototype" attribute will be @@ -319,7 +319,7 @@ as :ref:`cookbook-form-collections-new-prototype`. prototype_name ~~~~~~~~~~~~~~ -**type**: ``String`` **default**: ``__name__`` +**type**: ``string`` **default**: ``__name__`` If you have several collections in your form, or worse, nested collections you may want to change the placeholder so that unrelated placeholders are not @@ -359,7 +359,7 @@ The default value is ``array()`` (empty array). error_bubbling ~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` .. include:: /reference/forms/types/options/_error_bubbling_body.rst.inc @@ -379,6 +379,6 @@ Field Variables ============ =========== ======================================== Variable Type Usage ============ =========== ======================================== -allow_add ``Boolean`` The value of the `allow_add`_ option. -allow_delete ``Boolean`` The value of the `allow_delete`_ option. +allow_add ``boolean`` The value of the `allow_add`_ option. +allow_delete ``boolean`` The value of the `allow_delete`_ option. ============ =========== ======================================== diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 16cf2dc0a16..9927b504a15 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -183,7 +183,7 @@ directly. choices ~~~~~~~ -**type**: array | ``\Traversable`` **default**: ``null`` +**type**: ``array`` | ``\Traversable`` **default**: ``null`` Instead of allowing the `class`_ and `query_builder`_ options to fetch the entities to include for you, you can pass the ``choices`` option directly. diff --git a/reference/forms/types/options/attr.rst.inc b/reference/forms/types/options/attr.rst.inc index 03a13d4b9b6..bbee5888a4a 100644 --- a/reference/forms/types/options/attr.rst.inc +++ b/reference/forms/types/options/attr.rst.inc @@ -1,7 +1,7 @@ attr ~~~~ -**type**: array **default**: Empty array +**type**: ``array`` **default**: ``array()`` If you want to add extra attributes to an HTML field representation you can use the ``attr`` option. It's an associative array with HTML attributes diff --git a/reference/forms/types/options/button_attr.rst.inc b/reference/forms/types/options/button_attr.rst.inc index fe1d7fde82b..20265677042 100644 --- a/reference/forms/types/options/button_attr.rst.inc +++ b/reference/forms/types/options/button_attr.rst.inc @@ -1,7 +1,7 @@ attr ~~~~ -**type**: array **default**: Empty array +**type**: ``array`` **default**: ``array()`` If you want to add extra attributes to the HTML representation of the button, you can use ``attr`` option. It's an associative array with HTML attribute diff --git a/reference/forms/types/options/by_reference.rst.inc b/reference/forms/types/options/by_reference.rst.inc index 3e7987addb9..833552fc5ae 100644 --- a/reference/forms/types/options/by_reference.rst.inc +++ b/reference/forms/types/options/by_reference.rst.inc @@ -1,7 +1,7 @@ by_reference ~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` In most cases, if you have a ``name`` field, then you expect ``setName()`` to be called on the underlying object. In some cases, however, ``setName()`` diff --git a/reference/forms/types/options/cascade_validation.rst.inc b/reference/forms/types/options/cascade_validation.rst.inc index c41b605f9f6..e97c88a02ae 100644 --- a/reference/forms/types/options/cascade_validation.rst.inc +++ b/reference/forms/types/options/cascade_validation.rst.inc @@ -1,7 +1,7 @@ cascade_validation ~~~~~~~~~~~~~~~~~~ -**type**: Boolean **default**: false +**type**: ``boolean`` **default**: ``false`` Set this option to ``true`` to force validation on embedded form types. For example, if you have a ``ProductType`` with an embedded ``CategoryType``, diff --git a/reference/forms/types/options/constraints.rst.inc b/reference/forms/types/options/constraints.rst.inc index 0a09d94be4b..fa48dfb4cf1 100644 --- a/reference/forms/types/options/constraints.rst.inc +++ b/reference/forms/types/options/constraints.rst.inc @@ -1,7 +1,7 @@ constraints ~~~~~~~~~~~ -**type**: array or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null`` +**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null`` Allows you to attach one or more validation constraints to a specific field. For more information, see :ref:`Adding Validation`. diff --git a/reference/forms/types/options/data.rst.inc b/reference/forms/types/options/data.rst.inc index 9873740cf48..13afdfc44ac 100644 --- a/reference/forms/types/options/data.rst.inc +++ b/reference/forms/types/options/data.rst.inc @@ -1,7 +1,7 @@ data ~~~~ -**type**: mixed **default**: Defaults to field of the underlying object (if there is one) +**type**: ``mixed`` **default**: Defaults to field of the underlying object (if there is one) When you create a form, each field initially displays the value of the corresponding property of the form's domain object (if an object is bound diff --git a/reference/forms/types/options/empty_value.rst.inc b/reference/forms/types/options/empty_value.rst.inc index 19adfa5effe..f75b95b2b07 100644 --- a/reference/forms/types/options/empty_value.rst.inc +++ b/reference/forms/types/options/empty_value.rst.inc @@ -5,7 +5,7 @@ empty_value Since Symfony 2.3, empty values are also supported if the ``expanded`` option is set to true. -**type**: ``string`` or ``Boolean`` +**type**: ``string`` or ``boolean`` This option determines whether or not a special "empty" option (e.g. "Choose an option") will appear at the top of a select widget. This option only applies if the diff --git a/reference/forms/types/options/error_bubbling.rst.inc b/reference/forms/types/options/error_bubbling.rst.inc index dbe42833b17..bc6bc1c5e42 100644 --- a/reference/forms/types/options/error_bubbling.rst.inc +++ b/reference/forms/types/options/error_bubbling.rst.inc @@ -1,6 +1,6 @@ error_bubbling ~~~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` unless the form is ``compound`` +**type**: ``boolean`` **default**: ``false`` unless the form is ``compound`` .. include:: /reference/forms/types/options/_error_bubbling_body.rst.inc diff --git a/reference/forms/types/options/error_mapping.rst.inc b/reference/forms/types/options/error_mapping.rst.inc index cdca7e12d7c..7e83077db6e 100644 --- a/reference/forms/types/options/error_mapping.rst.inc +++ b/reference/forms/types/options/error_mapping.rst.inc @@ -4,7 +4,7 @@ error_mapping .. versionadded:: 2.1 The ``error_mapping`` option was introduced in Symfony 2.1. -**type**: ``array`` **default**: ``empty`` +**type**: ``array`` **default**: ``array()`` This option allows you to modify the target of a validation error. diff --git a/reference/forms/types/options/expanded.rst.inc b/reference/forms/types/options/expanded.rst.inc index e41c28a5da4..d57fc7c0892 100644 --- a/reference/forms/types/options/expanded.rst.inc +++ b/reference/forms/types/options/expanded.rst.inc @@ -1,7 +1,7 @@ expanded ~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If set to true, radio buttons or checkboxes will be rendered (depending on the ``multiple`` value). If false, a select element will be rendered. diff --git a/reference/forms/types/options/multiple.rst.inc b/reference/forms/types/options/multiple.rst.inc index f5a61f28012..86a72432cb3 100644 --- a/reference/forms/types/options/multiple.rst.inc +++ b/reference/forms/types/options/multiple.rst.inc @@ -1,7 +1,7 @@ multiple ~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If true, the user will be able to select multiple options (as opposed to choosing just one option). Depending on the value of the ``expanded`` diff --git a/reference/forms/types/options/read_only.rst.inc b/reference/forms/types/options/read_only.rst.inc index d1c2101591c..7988f0378c8 100644 --- a/reference/forms/types/options/read_only.rst.inc +++ b/reference/forms/types/options/read_only.rst.inc @@ -1,7 +1,7 @@ read_only ~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` If this option is true, the field will be rendered with the ``readonly`` attribute so that the field is not editable. diff --git a/reference/forms/types/options/required.rst.inc b/reference/forms/types/options/required.rst.inc index 8a4f7321da3..6bc444d31d8 100644 --- a/reference/forms/types/options/required.rst.inc +++ b/reference/forms/types/options/required.rst.inc @@ -1,7 +1,7 @@ required ~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` If true, an `HTML5 required attribute`_ will be rendered. The corresponding ``label`` will also render with a ``required`` class. diff --git a/reference/forms/types/options/trim.rst.inc b/reference/forms/types/options/trim.rst.inc index 68ba656be94..0caecac17ee 100644 --- a/reference/forms/types/options/trim.rst.inc +++ b/reference/forms/types/options/trim.rst.inc @@ -1,7 +1,7 @@ trim ~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` If true, the whitespace of the submitted string value will be stripped via the ``trim()`` function when the data is bound. This guarantees that diff --git a/reference/forms/types/options/with_minutes.rst.inc b/reference/forms/types/options/with_minutes.rst.inc index 48e6cdddcaf..7661b7f02df 100644 --- a/reference/forms/types/options/with_minutes.rst.inc +++ b/reference/forms/types/options/with_minutes.rst.inc @@ -4,7 +4,7 @@ with_minutes .. versionadded:: 2.2 The ``with_minutes`` option was introduced in Symfony 2.2. -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` Whether or not to include minutes in the input. This will result in an additional input to capture minutes. diff --git a/reference/forms/types/options/with_seconds.rst.inc b/reference/forms/types/options/with_seconds.rst.inc index cc9b0b12105..a5c547fa183 100644 --- a/reference/forms/types/options/with_seconds.rst.inc +++ b/reference/forms/types/options/with_seconds.rst.inc @@ -1,7 +1,7 @@ with_seconds ~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``false`` Whether or not to include seconds in the input. This will result in an additional input to capture seconds. diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index eefe8eb7c31..6288c90a41a 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -34,7 +34,7 @@ Field Options always_empty ~~~~~~~~~~~~ -**type**: ``Boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: ``true`` If set to true, the field will *always* render blank, even if the corresponding field has a value. When set to false, the password field will be rendered diff --git a/reference/forms/types/submit.rst b/reference/forms/types/submit.rst index 63385eb328c..89c3632999b 100644 --- a/reference/forms/types/submit.rst +++ b/reference/forms/types/submit.rst @@ -79,5 +79,5 @@ Form Variables ======== =========== ============================================================== Variable Type Usage ======== =========== ============================================================== -clicked ``Boolean`` Whether the button is clicked or not. +clicked ``boolean`` Whether the button is clicked or not. ======== =========== ============================================================== diff --git a/reference/forms/types/time.rst b/reference/forms/types/time.rst index 71b3af1cdb5..f729f419dcc 100644 --- a/reference/forms/types/time.rst +++ b/reference/forms/types/time.rst @@ -175,9 +175,9 @@ Form Variables +==============+=============+======================================================================+ | widget | ``mixed`` | The value of the `widget`_ option. | +--------------+-------------+----------------------------------------------------------------------+ -| with_minutes | ``Boolean`` | The value of the `with_minutes`_ option. | +| with_minutes | ``boolean`` | The value of the `with_minutes`_ option. | +--------------+-------------+----------------------------------------------------------------------+ -| with_seconds | ``Boolean`` | The value of the `with_seconds`_ option. | +| with_seconds | ``boolean`` | The value of the `with_seconds`_ option. | +--------------+-------------+----------------------------------------------------------------------+ | type | ``string`` | Only present when widget is ``single_text`` and HTML5 is activated, | | | | contains the input type to use (``datetime``, ``date`` or ``time``). | diff --git a/reference/forms/types/variables/check_or_radio_table.rst.inc b/reference/forms/types/variables/check_or_radio_table.rst.inc index ae137a3f200..32025c5e474 100644 --- a/reference/forms/types/variables/check_or_radio_table.rst.inc +++ b/reference/forms/types/variables/check_or_radio_table.rst.inc @@ -1,5 +1,5 @@ ======== ============ ============================================ Variable Type Usage ======== ============ ============================================ -checked ``Boolean`` Whether or not the current input is checked. +checked ``boolean`` Whether or not the current input is checked. ======== ============ ============================================ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy