Skip to content

Clearer wording of allow_delete template behavior #9209

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 1 commit into from
Feb 13, 2018
Merged
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
6 changes: 4 additions & 2 deletions form/form_collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,11 @@ Now, you need to put some code into the ``removeTag()`` method of ``Task``::
Template Modifications
~~~~~~~~~~~~~~~~~~~~~~

The ``allow_delete`` option has one consequence: if an item of a collection
The ``allow_delete`` option means that if an item of a collection
isn't sent on submission, the related data is removed from the collection
on the server. The solution is to remove the form element from the DOM.
on the server. In order for this to work in an HTML form, you must remove
the DOM element for the collection item to be removed, before submitting
the form.

First, add a "delete this tag" link to each tag form:

Expand Down