Skip to content

Commit 7a27c7a

Browse files
committed
Merge pull request #2114 from Sgoettschkes/issue2096
[Form] Adding disabled option docs
2 parents 09d1d91 + fe3c9dc commit 7a27c7a

27 files changed

+97
-8
lines changed

reference/forms/types/birthday.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ option defaults to 120 years ago to the current year.
3131
| | - `user_timezone`_ |
3232
| | - `invalid_message`_ |
3333
| | - `invalid_message_parameters`_ |
34+
| | - `read_only`_ |
35+
| | - `disabled`_ |
3436
+----------------------+------------------------------------------------------------------------------------------------------------------------+
3537
| Parent type | :doc:`date</reference/forms/types/date>` |
3638
+----------------------+------------------------------------------------------------------------------------------------------------------------+
@@ -75,3 +77,6 @@ These options inherit from the :doc:`date</reference/forms/types/field>` type:
7577

7678
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
7779

80+
.. include:: /reference/forms/types/options/read_only.rst.inc
81+
82+
.. include:: /reference/forms/types/options/disabled.rst.inc

reference/forms/types/checkbox.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if the box is unchecked, the value will be set to false.
1616
| Inherited | - `required`_ |
1717
| options | - `label`_ |
1818
| | - `read_only`_ |
19+
| | - `disabled`_ |
1920
| | - `error_bubbling`_ |
2021
+-------------+------------------------------------------------------------------------+
2122
| Parent type | :doc:`field</reference/forms/types/field>` |
@@ -55,4 +56,6 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5556

5657
.. include:: /reference/forms/types/options/read_only.rst.inc
5758

59+
.. include:: /reference/forms/types/options/disabled.rst.inc
60+
5861
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

reference/forms/types/choice.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ option.
2525
| Inherited | - `required`_ |
2626
| options | - `label`_ |
2727
| | - `read_only`_ |
28+
| | - `disabled`_ |
2829
| | - `error_bubbling`_ |
2930
+-------------+-----------------------------------------------------------------------------+
3031
| Parent type | :doc:`form</reference/forms/types/form>` (if expanded), ``field`` otherwise |
@@ -118,4 +119,6 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
118119

119120
.. include:: /reference/forms/types/options/read_only.rst.inc
120121

122+
.. include:: /reference/forms/types/options/disabled.rst.inc
123+
121124
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

reference/forms/types/country.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ you should just use the ``choice`` type directly.
3030
| | - `required`_ |
3131
| | - `label`_ |
3232
| | - `read_only`_ |
33+
| | - `disabled`_ |
3334
+-------------+-----------------------------------------------------------------------+
3435
| Parent type | :doc:`choice</reference/forms/types/choice>` |
3536
+-------------+-----------------------------------------------------------------------+
@@ -58,3 +59,5 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5859
.. include:: /reference/forms/types/options/label.rst.inc
5960

6061
.. include:: /reference/forms/types/options/read_only.rst.inc
62+
63+
.. include:: /reference/forms/types/options/disabled.rst.inc

reference/forms/types/date.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ day, and year) or three select boxes (see the `widget_` option).
3232
+----------------------+-----------------------------------------------------------------------------+
3333
| Inherited | - `invalid_message`_ |
3434
| options | - `invalid_message_parameters`_ |
35+
| | - `read_only`_ |
36+
| | - `disabled`_ |
3537
+----------------------+-----------------------------------------------------------------------------+
3638
| Parent type | ``field`` (if text), ``form`` otherwise |
3739
+----------------------+-----------------------------------------------------------------------------+
@@ -120,4 +122,8 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
120122

121123
.. include:: /reference/forms/types/options/invalid_message.rst.inc
122124

123-
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
125+
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
126+
127+
.. include:: /reference/forms/types/options/read_only.rst.inc
128+
129+
.. include:: /reference/forms/types/options/disabled.rst.inc

reference/forms/types/datetime.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ data can be a ``DateTime`` object, a string, a timestamp or an array.
3131
+----------------------+-----------------------------------------------------------------------------+
3232
| Inherited | - `invalid_message`_ |
3333
| options | - `invalid_message_parameters`_ |
34+
| | - `read_only`_ |
35+
| | - `disabled`_ |
3436
+----------------------+-----------------------------------------------------------------------------+
3537
| Parent type | :doc:`form</reference/forms/types/form>` |
3638
+----------------------+-----------------------------------------------------------------------------+
@@ -104,4 +106,8 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
104106

105107
.. include:: /reference/forms/types/options/invalid_message.rst.inc
106108

107-
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
109+
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
110+
111+
.. include:: /reference/forms/types/options/read_only.rst.inc
112+
113+
.. include:: /reference/forms/types/options/disabled.rst.inc

reference/forms/types/email.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The ``email`` field is a text field that is rendered using the HTML5
1515
| | - `label`_ |
1616
| | - `trim`_ |
1717
| | - `read_only`_ |
18+
| | - `disabled`_ |
1819
| | - `error_bubbling`_ |
1920
+-------------+---------------------------------------------------------------------+
2021
| Parent type | :doc:`field</reference/forms/types/field>` |
@@ -37,4 +38,6 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
3738

3839
.. include:: /reference/forms/types/options/read_only.rst.inc
3940

40-
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
41+
.. include:: /reference/forms/types/options/disabled.rst.inc
42+
43+
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

reference/forms/types/entity.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ objects from the database.
2525
| | - `preferred_choices`_ |
2626
| | - `empty_value`_ |
2727
| | - `read_only`_ |
28+
| | - `disabled`_ |
2829
| | - `error_bubbling`_ |
2930
+-------------+------------------------------------------------------------------+
3031
| Parent type | :doc:`choice</reference/forms/types/choice>` |
@@ -141,4 +142,6 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
141142

142143
.. include:: /reference/forms/types/options/read_only.rst.inc
143144

145+
.. include:: /reference/forms/types/options/disabled.rst.inc
146+
144147
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

reference/forms/types/file.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The ``file`` type represents a file input in your form.
1212
| Inherited | - `required`_ |
1313
| options | - `label`_ |
1414
| | - `read_only`_ |
15+
| | - `disabled`_ |
1516
| | - `error_bubbling`_ |
1617
+-------------+---------------------------------------------------------------------+
1718
| Parent type | :doc:`form</reference/forms/types/form>` |
@@ -89,4 +90,6 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
8990

9091
.. include:: /reference/forms/types/options/read_only.rst.inc
9192

92-
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
93+
.. include:: /reference/forms/types/options/disabled.rst.inc
94+
95+
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

reference/forms/types/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on all fields.
1717

1818
.. include:: /reference/forms/types/options/cascade_validation.rst.inc
1919

20-
.. include:: /reference/forms/types/options/disabled.rst.inc
20+
.. include:: /reference/forms/types/options/read_only.rst.inc
2121

2222
.. include:: /reference/forms/types/options/trim.rst.inc
2323

0 commit comments

Comments
 (0)