Skip to content

[2.1] Fixed build errors #2445

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 3 commits into from
Apr 1, 2013
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
11 changes: 5 additions & 6 deletions cookbook/form/dynamic_form_modification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,11 @@ How to Dynamically Generate Forms based on user data
====================================================

Sometimes you want a form to be generated dynamically based not only on data
from this form (see :doc:`Dynamic form generation</cookbook/dynamic_form_generation>`)
but also on something else. For example depending on the user currently using
the application. If you have a social website where a user can only message
people who are his friends on the website, then the current user doesn't need to
be included as a field of your form, but a "choice list" of whom to message
should only contain users that are the current user's friends.
from this form but also on something else. For example depending on the user
Copy link
Member Author

Choose a reason for hiding this comment

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

This was an error (because it should be /cookbook/form/dynamic_form_generation). But I did removed it because it's a link to this document, I don't think that's needed. If someone finds the doc where this link should go to, I'm happy to change it!

currently using the application. If you have a social website where a user can
only message people who are his friends on the website, then the current user
doesn't need to be included as a field of your form, but a "choice list" of
whom to message should only contain users that are the current user's friends.

Creating the form type
----------------------
Expand Down
2 changes: 1 addition & 1 deletion cookbook/form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Adding custom Extensions
------------------------

It often happens that you use some options that are added by
:doc:`form extensions<cookbook/form/create_form_type_extension>`. One of the
:doc:`form extensions</cookbook/form/create_form_type_extension>`. One of the
cases may be the ``ValidatorExtension`` with its ``invalid_message`` option.
The ``TypeTestCase`` loads only the core form extension so an "Invalid option"
exception will be raised if you try to use it for testing a class that depends
Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on all fields.

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

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

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

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