Skip to content

[Form] Added the attr_row option to all form types #12302

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
Sep 12, 2019
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions reference/forms/types/birthday.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ option defaults to 120 years ago to the current year.
| | |
| | from the :doc:`FormType </reference/forms/types/form>`: |
| | |
| | - `attr`_ |
| | - `data`_ |
| | - `disabled`_ |
| | - `help`_ |
Expand All @@ -46,6 +47,7 @@ option defaults to 120 years ago to the current year.
| | - `invalid_message`_ |
| | - `invalid_message_parameters`_ |
| | - `mapped`_ |
| | - `row_attr`_ |
+----------------------+-------------------------------------------------------------------------------+
| Parent type | :doc:`DateType </reference/forms/types/date>` |
+----------------------+-------------------------------------------------------------------------------+
Expand Down Expand Up @@ -112,6 +114,8 @@ values for the year, month and day fields::

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand All @@ -129,3 +133,5 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc

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

.. include:: /reference/forms/types/options/row_attr.rst.inc
3 changes: 3 additions & 0 deletions reference/forms/types/button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A simple, non-responsive button.
| | - `disabled`_ |
| | - `label`_ |
| | - `label_translation_parameters`_ |
| | - `row_attr`_ |
| | - `translation_domain`_ |
+----------------------+----------------------------------------------------------------------+
| Parent type | none |
Expand Down Expand Up @@ -91,3 +92,5 @@ option of its parents, so buttons can reuse and/or override any of the parent
placeholders.

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

.. include:: /reference/forms/types/options/row_attr.rst.inc
10 changes: 8 additions & 2 deletions reference/forms/types/checkbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ if you want to handle submitted values like "0" or "false").
| Overridden | - `compound`_ |
| options | - `empty_data`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | - `data`_ |
| options | - `disabled`_ |
| Inherited | - `attr`_ |
| options | - `data`_ |
| | - `disabled`_ |
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `help`_ |
Expand All @@ -32,6 +33,7 @@ if you want to handle submitted values like "0" or "false").
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
+-------------+------------------------------------------------------------------------+
| Parent type | :doc:`FormType </reference/forms/types/form>` |
+-------------+------------------------------------------------------------------------+
Expand Down Expand Up @@ -77,6 +79,8 @@ Inherited Options

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand All @@ -101,6 +105,8 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

Form Variables
--------------

Expand Down
3 changes: 3 additions & 0 deletions reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
| | - `translation_domain`_ |
| | - `label_translation_parameters`_ |
| | - `attr_translation_parameters`_ |
Expand Down Expand Up @@ -298,6 +299,8 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

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

.. include:: /reference/forms/types/options/label_translation_parameters.rst.inc
Expand Down
10 changes: 8 additions & 2 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ photos).
| | - `prototype_data`_ |
| | - `prototype_name`_ |
+-------------+-----------------------------------------------------------------------------+
| Inherited | - `by_reference`_ |
| options | - `empty_data`_ |
| Inherited | - `attr`_ |
| options | - `by_reference`_ |
| | - `empty_data`_ |
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `help`_ |
Expand All @@ -35,6 +36,7 @@ photos).
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
+-------------+-----------------------------------------------------------------------------+
| Parent type | :doc:`FormType </reference/forms/types/form>` |
+-------------+-----------------------------------------------------------------------------+
Expand Down Expand Up @@ -400,6 +402,8 @@ Inherited Options
These options inherit from the :doc:`FormType </reference/forms/types/form>`.
Not all options are listed here - only the most applicable to this type:

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

.. _reference-form-types-by-reference:

.. include:: /reference/forms/types/options/by_reference.rst.inc
Expand Down Expand Up @@ -437,6 +441,8 @@ error_bubbling

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

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

Field Variables
---------------

Expand Down
10 changes: 8 additions & 2 deletions reference/forms/types/color.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ element.
+-------------+---------------------------------------------------------------------+
| Rendered as | ``input`` ``color`` field (a text box) |
+-------------+---------------------------------------------------------------------+
| Inherited | - `data`_ |
| options | - `disabled`_ |
| Inherited | - `attr`_ |
| options | - `data`_ |
| | - `disabled`_ |
| | - `empty_data`_ |
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
Expand All @@ -30,6 +31,7 @@ element.
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
| | - `trim`_ |
+-------------+---------------------------------------------------------------------+
| Parent type | :doc:`TextType </reference/forms/types/text>` |
Expand All @@ -44,6 +46,8 @@ Inherited Options

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand Down Expand Up @@ -76,4 +80,6 @@ The default value is ``''`` (the empty string).

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

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

.. include:: /reference/forms/types/options/trim.rst.inc
6 changes: 6 additions & 0 deletions reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
| | |
| | from the :doc:`FormType </reference/forms/types/form>` |
| | |
| | - `attr`_ |
| | - `data`_ |
| | - `disabled`_ |
| | - `empty_data`_ |
Expand All @@ -49,6 +50,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
+-------------+-----------------------------------------------------------------------+
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
+-------------+-----------------------------------------------------------------------+
Expand Down Expand Up @@ -99,6 +101,8 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand Down Expand Up @@ -130,3 +134,5 @@ The actual default value of this option depends on other field options:
.. include:: /reference/forms/types/options/mapped.rst.inc

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

.. include:: /reference/forms/types/options/row_attr.rst.inc
6 changes: 6 additions & 0 deletions reference/forms/types/currency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| | |
| | from the :doc:`FormType </reference/forms/types/form>` type |
| | |
| | - `attr`_ |
| | - `data`_ |
| | - `disabled`_ |
| | - `empty_data`_ |
Expand All @@ -41,6 +42,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| | - `label_format`_ |
| | - `mapped`_ |
| | - `required`_ |
| | - `row_attr`_ |
+-------------+------------------------------------------------------------------------+
| Parent type | :doc:`ChoiceType </reference/forms/types/choice>` |
+-------------+------------------------------------------------------------------------+
Expand Down Expand Up @@ -88,6 +90,8 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand Down Expand Up @@ -120,4 +124,6 @@ The actual default value of this option depends on other field options:

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

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

.. _`3-letter ISO 4217`: https://en.wikipedia.org/wiki/ISO_4217
10 changes: 8 additions & 2 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ and can understand a number of different input formats via the `input`_ option.
| | - `data_class`_ |
| | - `error_bubbling`_ |
+----------------------+-----------------------------------------------------------------------------+
| Inherited | - `data`_ |
| options | - `disabled`_ |
| Inherited | - `attr`_ |
| options | - `data`_ |
| | - `disabled`_ |
| | - `error_mapping`_ |
| | - `help`_ |
| | - `help_attr`_ |
Expand All @@ -43,6 +44,7 @@ and can understand a number of different input formats via the `input`_ option.
| | - `invalid_message`_ |
| | - `invalid_message_parameters`_ |
| | - `mapped`_ |
| | - `row_attr`_ |
+----------------------+-----------------------------------------------------------------------------+
| Parent type | :doc:`FormType </reference/forms/types/form>` |
+----------------------+-----------------------------------------------------------------------------+
Expand Down Expand Up @@ -218,6 +220,8 @@ Inherited Options

These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand All @@ -238,6 +242,8 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:

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

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

Field Variables
---------------

Expand Down
Loading