File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,11 @@ How to Dynamically Generate Forms based on user data
161
161
====================================================
162
162
163
163
Sometimes you want a form to be generated dynamically based not only on data
164
- from this form (see :doc: `Dynamic form generation</cookbook/dynamic_form_generation> `)
165
- but also on something else. For example depending on the user currently using
166
- the application. If you have a social website where a user can only message
167
- people who are his friends on the website, then the current user doesn't need to
168
- be included as a field of your form, but a "choice list" of whom to message
169
- should only contain users that are the current user's friends.
164
+ from this form but also on something else. For example depending on the user
165
+ currently using the application. If you have a social website where a user can
166
+ only message people who are his friends on the website, then the current user
167
+ doesn't need to be included as a field of your form, but a "choice list" of
168
+ whom to message should only contain users that are the current user's friends.
170
169
171
170
Creating the form type
172
171
----------------------
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ Adding custom Extensions
149
149
------------------------
150
150
151
151
It often happens that you use some options that are added by
152
- :doc: `form extensions<cookbook/form/create_form_type_extension> `. One of the
152
+ :doc: `form extensions</ cookbook/form/create_form_type_extension> `. One of the
153
153
cases may be the ``ValidatorExtension `` with its ``invalid_message `` option.
154
154
The ``TypeTestCase `` loads only the core form extension so an "Invalid option"
155
155
exception will be raised if you try to use it for testing a class that depends
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ on all fields.
19
19
20
20
.. include :: /reference/forms/types/options/read_only.rst.inc
21
21
22
+ .. include :: /reference/forms/types/options/disabled.rst.inc
23
+
22
24
.. include :: /reference/forms/types/options/trim.rst.inc
23
25
24
26
.. include :: /reference/forms/types/options/mapped.rst.inc
You can’t perform that action at this time.
0 commit comments