8000 [Form] Deprecate "read_only" option by snoob · Pull Request #3782 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Deprecate "read_only" option #3782

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 48 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2e86186
Merge branch '2.8'
weaverryan Apr 15, 2015
b74593c
Merge branch '2.8'
weaverryan Apr 17, 2015
701f2cf
Merge branch '2.8'
wouterj Apr 26, 2015
f0429d7
Merge branch '2.8'
weaverryan Apr 27, 2015
83636f0
Merge branch '2.8'
wouterj May 2, 2015
041b2af
Merge branch '2.8'
wouterj May 2, 2015
643f4c4
Merge branch '2.8'
wouterj May 2, 2015
c1cbb9a
Merge branch '2.8'
weaverryan May 3, 2015
de9b3d5
Merge branch '2.8'
wouterj May 10, 2015
25c9705
Merge branch '2.8'
wouterj May 17, 2015
12d8531
Merge branch '2.8'
weaverryan May 22, 2015
c2b92e1
Merge branch '2.8'
wouterj May 23, 2015
2d64dd5
Merge branch '2.8'
weaverryan May 23, 2015
7cadcdc
Merge branch '2.8'
wouterj May 24, 2015
c3fd4f5
Merge branch '2.8'
wouterj May 24, 2015
68f51df
Merge branch '2.8'
weaverryan May 25, 2015
0c089ec
Update create_form_type_extension.rst
May 28, 2015
78bab15
Merge branch '2.8'
weaverryan May 29, 2015
ed88e1c
bug #5328 Update create_form_type_extension.rst (jackdelin)
wouterj May 31, 2015
d6c5d5b
Merge branch '2.8'
wouterj May 31, 2015
6a9a26a
Merge branch '2.8'
wouterj May 31, 2015
f78cab7
Merge branch '2.8'
wouterj May 31, 2015
078bb2d
Merge branch '2.8'
wouterj Jun 7, 2015
f2f1ffc
[Form] Fix #9325
snoob Apr 9, 2014
e71355b
Revert "[Form] Fix #9325"
snoob Apr 9, 2014
897cf60
[WCM][Form] Deprecate "read_only" option
snoob Apr 9, 2014
46fa51f
Rebase
snoob Jun 10, 2015
2409c9d
Rebase
snoob Jun 10, 2015
c475f20
Rebase
snoob Jun 10, 2015
2055bbc
Fixed table
snoob Jun 12, 2015
8739ef1
Fixed typo
snoob Jun 15, 2015
677b6a8
Fixed typo
snoob Jun 15, 2015
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
7 changes: 1 addition & 6 deletions reference/forms/types/birthday.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,8 @@ option defaults to 120 years ago to the current year.
| | - `inherit_data`_ |
| | - `invalid_message`_ |
| | - `invalid_message_parameters`_ |
<<<<<<< HEAD
=======
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks wrong (too many spaces).

+----------------------+-------------------------------------------------------------------------------+
| Parent type | :doc:`date </reference/forms/types/date>` |
+----------------------+-------------------------------------------------------------------------------+
Expand Down
10 changes: 1 addition & 9 deletions reference/forms/types/checkbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,13 @@ if the box is unchecked, the value will be set to false.
| options | - `empty_data`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | - `data`_ |
<<<<<<< HEAD
| options | - `disabled`_ |
=======
| options | - `required`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

| | - `required`_ |
+-------------+------------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
Expand Down
10 changes: 1 addition & 9 deletions reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,15 @@ option.
| options | - `empty_data`_ |
| | - `error_bubbling`_ |
+-------------+------------------------------------------------------------------------------+
<<<<<<< HEAD
| Inherited | - `by_reference`_ |
| options | - `data`_ |
=======
| Inherited | - `required`_ |
| options | - `label`_ |
| | - `label_attr`_ |
| | - `data`_ |
| | - `read_only`_ (deprecated as of 2.6) |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `disabled`_ |
| | - `error_mapping`_ |
| | - `inherit_data`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here (actually all tables are broken)

| | - `required`_ |
+-------------+------------------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
Expand Down
8 changes: 1 addition & 7 deletions reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ you should just use the ``choice`` type directly.
| | - `empty_data`_ |
| | - `label`_ |
| | - `label_attr`_ |
<<<<<<< HEAD
=======
| | - `data`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
+-------------+-----------------------------------------------------------------------+
| Parent type | :doc:`choice </reference/forms/types/choice>` |
Expand Down
8 changes: 1 addition & 7 deletions reference/forms/types/currency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@ you should just use the ``choice`` type directly.
| | - `empty_data`_ |
| | - `label`_ |
| | - `label_attr`_ |
<<<<<<< HEAD
=======
| | - `data`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
+-------------+------------------------------------------------------------------------+
| Parent type | :doc:`choice </reference/forms/types/choice>` |
Expand Down
7 changes: 1 addition & 6 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ day and year) or three select boxes (see the `widget`_ option).
| | - `inherit_data`_ |
| | - `invalid_message`_ |
| | - `invalid_message_parameters`_ |
<<<<<<< HEAD
=======
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
+----------------------+-----------------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
+----------------------+-----------------------------------------------------------------------------+
Expand Down
7 changes: 1 addition & 6 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ the data can be a ``DateTime`` object, a string, a timestamp or an array.
| | - `inherit_data`_ |
| | - `invalid_message`_ |
| | - `invalid_message_parameters`_ |
<<<<<<< HEAD
=======
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
+----------------------+-----------------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
+----------------------+-----------------------------------------------------------------------------+
Expand Down
14 changes: 1 addition & 13 deletions reference/forms/types/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,16 @@ The ``email`` field is a text field that is rendered using the HTML5
+-------------+---------------------------------------------------------------------+
| Rendered as | ``input`` ``email`` field (a text box) |
+-------------+---------------------------------------------------------------------+
<<<<<<< HEAD
| Inherited | - `data`_ |
| options | - `disabled`_ |
| | - `empty_data`_ |
=======
| Inherited | - `max_length`_ (deprecated as of 2.5) |
| options | - `empty_data`_ |
| | - `required`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `data`_ |
| | - `trim`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `mapped`_ |
| | - `max_length`_ (deprecated as of 2.5) |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
| | - `trim`_ |
+-------------+---------------------------------------------------------------------+
Expand Down
6 changes: 1 addition & 5 deletions reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,14 @@ objects from the database.
| | from the :doc:`form </reference/forms/types/form>` type: |
| | |
| | - `data`_ |
<<<<<<< HEAD
=======
| | - `read_only`_ (deprecated as of 2.6) |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `disabled`_ |
| | - `empty_data`_ |
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
+-------------+------------------------------------------------------------------+
| Parent type | :doc:`choice </reference/forms/types/choice>` |
Expand Down
11 changes: 1 addition & 10 deletions reference/forms/types/file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,14 @@ The ``file`` type represents a file input in your form.
+-------------+---------------------------------------------------------------------+
| Options | - `multiple`_ |
+-------------+---------------------------------------------------------------------+
<<<<<<< HEAD
| Inherited | - `disabled`_ |
| options | - `empty_data`_ |
=======
| Inherited | - `empty_data`_ |
| options | - `required`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `disabled`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `label`_ |
| | - `label_attr`_ |
| | - `mapped`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
+-------------+---------------------------------------------------------------------+
| Parent type | :doc:`form </reference/forms/types/form>` |
Expand Down
15 changes: 1 addition & 14 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ on all types for which ``form`` is the parent type.
| | - `data`_ |
| | - `data_class`_ |
| | - `empty_data`_ |
<<<<<<< HEAD
=======
| | - `required`_ |
| | - `label_attr`_ |
| | - `constraints`_ |
| | - `cascade_validation`_ |
| | - `read_only`_ (deprecated as of 2.6) |
| | - `trim`_ |
| | - `mapped`_ |
| | - `property_path`_ |
| | - `max_length`_ (deprecated as of 2.5) |
| | - `by_reference`_ |
>>>>>>> [WCM][Form] Deprecate "read_only" option
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
| | - `extra_fields_message`_ |
Expand All @@ -43,7 +30,7 @@ on all types for which ``form`` is the parent type.
| | - `pattern`_ (deprecated as of 2.5) |
| | - `post_max_size_message`_ |
| | - `property_path`_ |
| | - `read_only`_ |
| | - `read_only`_ (deprecated as of 2.8) |
| | - `required`_ |
| | - `trim`_ |
+-----------+--------------------------------------------------------------------+
Expand Down
Loading
0