Skip to content

Commit c9e8634

Browse files
snoobweaverryan
authored andcommitted
[#3782] Deprecating the read_only option
(committed by weaverryan, original credit to the author on this commit)
1 parent 0fe1050 commit c9e8634

27 files changed

+30
-27
lines changed

reference/forms/twig_reference.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,6 @@ object:
340340
+------------------------+-------------------------------------------------------------------------------------+
341341
| ``value`` | The value that will be used when rendering (commonly the ``value`` HTML attribute). |
342342
+------------------------+-------------------------------------------------------------------------------------+
343-
| ``read_only`` | If ``true``, ``readonly="readonly"`` is added to the field. |
344-
+------------------------+-------------------------------------------------------------------------------------+
345343
| ``disabled`` | If ``true``, ``disabled="disabled"`` is added to the field. |
346344
+------------------------+-------------------------------------------------------------------------------------+
347345
| ``required`` | If ``true``, a ``required`` attribute is added to the field to activate HTML5 |

reference/forms/types/birthday.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ option defaults to 120 years ago to the current year.
4141
| | - `invalid_message`_ |
4242
| | - `invalid_message_parameters`_ |
4343
| | - `mapped`_ |
44-
| | - `read_only`_ |
44+
| | - `read_only`_ (deprecated as of 2.8) |
4545
+----------------------+-------------------------------------------------------------------------------+
4646
| Parent type | :doc:`date </reference/forms/types/date>` |
4747
+----------------------+-------------------------------------------------------------------------------+

reference/forms/types/checkbox.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if the box is unchecked, the value will be set to false.
2323
| | - `label`_ |
2424
| | - `label_attr`_ |
2525
| | - `mapped`_ |
26-
| | - `read_only`_ |
26+
| | - `read_only`_ (deprecated as of 2.8) |
2727
| | - `required`_ |
2828
+-------------+------------------------------------------------------------------------+
2929
| Parent type | :doc:`form </reference/forms/types/form>` |

reference/forms/types/choice.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ option.
3232
| | - `label`_ |
3333
| | - `label_attr`_ |
3434
| | - `mapped`_ |
35-
| | - `read_only`_ |
35+
| | - `read_only`_ (deprecated as of 2.8) |
3636
| | - `required`_ |
3737
+-------------+------------------------------------------------------------------------------+
3838
| Parent type | :doc:`form </reference/forms/types/form>` |

reference/forms/types/country.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ you should just use the ``choice`` type directly.
4242
| | - `label`_ |
4343
| | - `label_attr`_ |
4444
| | - `mapped`_ |
45-
| | - `read_only`_ |
45+
| | - `read_only`_ (deprecated as of 2.8) |
4646
| | - `required`_ |
4747
+-------------+-----------------------------------------------------------------------+
4848
| Parent type | :doc:`choice </reference/forms/types/choice>` |

reference/forms/types/currency.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ you should just use the ``choice`` type directly.
3535
| | - `label`_ |
3636
| | - `label_attr`_ |
3737
| | - `mapped`_ |
38-
| | - `read_only`_ |
38+
| | - `read_only`_ (deprecated as of 2.8) |
3939
| | - `required`_ |
4040
+-------------+------------------------------------------------------------------------+
4141
| Parent type | :doc:`choice </reference/forms/types/choice>` |

reference/forms/types/date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ day and year) or three select boxes (see the `widget`_ option).
4040
| | - `invalid_message`_ |
4141
| | - `invalid_message_parameters`_ |
4242
| | - `mapped`_ |
43-
| | - `read_only`_ |
43+
| | - `read_only`_ (deprecated as of 2.8) |
4444
+----------------------+-----------------------------------------------------------------------------+
4545
| Parent type | :doc:`form </reference/forms/types/form>` |
4646
+----------------------+-----------------------------------------------------------------------------+

reference/forms/types/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ the data can be a ``DateTime`` object, a string, a timestamp or an array.
4040
| | - `invalid_message`_ |
4141
| | - `invalid_message_parameters`_ |
4242
| | - `mapped`_ |
43-
| | - `read_only`_ |
43+
| | - `read_only`_ (deprecated as of 2.8) |
4444
+----------------------+-----------------------------------------------------------------------------+
4545
| Parent type | :doc:`form </reference/forms/types/form>` |
4646
+----------------------+-----------------------------------------------------------------------------+

reference/forms/types/email.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The ``email`` field is a text field that is rendered using the HTML5
1919
| | - `label_attr`_ |
2020
| | - `mapped`_ |
2121
| | - `max_length`_ (deprecated as of 2.5) |
22-
| | - `read_only`_ |
22+
| | - `read_only`_ (deprecated as of 2.8) |
2323
| | - `required`_ |
2424
| | - `trim`_ |
2525
+-------------+---------------------------------------------------------------------+

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ objects from the database.
3939
| | - `label`_ |
4040
| | - `label_attr`_ |
4141
| | - `mapped`_ |
42-
| | - `read_only`_ |
42+
| | - `read_only`_ (deprecated as of 2.8) |
4343
| | - `required`_ |
4444
+-------------+------------------------------------------------------------------+
4545
| Parent type | :doc:`choice </reference/forms/types/choice>` |

0 commit comments

Comments
 (0)
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