Skip to content

Add @a2lix/symfony-collection solution #9614

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
Sep 23, 2019
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
16 changes: 10 additions & 6 deletions form/form_collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ Template Modifications

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. In order for this to work in an HTML form, you must remove
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.

Expand Down Expand Up @@ -747,13 +747,17 @@ the relationship between the removed ``Tag`` and ``Task`` object.
updated (whether you're adding new tags or removing existing tags) on
each Tag object itself.

.. sidebar:: Form collection jQuery plugin
.. sidebar:: Form collection external solutions

The jQuery plugin `symfony-collection`_ helps with ``collection`` form elements,
by providing the JavaScript functionality needed to add, edit and delete
elements of the collection. More advanced functionality like moving or duplicating
an element in the collection and customizing the buttons is also possible.
The package `@a2lix/symfony-collection`_ helps with ``collection`` form elements,
by providing to modern browsers the Javascript functionality needed to add, edit and delete
elements of the collection.

If you want to use jQuery, there is a jQuery extension, `symfony-collection`_ with
more advanced functionality like moving or duplicating an element in the collection
and customizing the buttons is also possible.

.. _`Owning Side and Inverse Side`: http://docs.doctrine-project.org/en/latest/reference/unitofwork-associations.html
.. _`JSFiddle`: http://jsfiddle.net/847Kf/4/
.. _`@a2lix/symfony-collection`: https://github.com/a2lix/symfony-collection
.. _`symfony-collection`: https://github.com/ninsuo/symfony-collection