Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.0] [Form] - Rename data-prototype attribute to data-collection-protoype #7833

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
leevigraham opened this issue Apr 24, 2013 · 1 comment
Closed

Comments

@leevigraham
Copy link
Contributor

data-prototype does not accurately reflect the contents of the attribute. I propose the following attributes on collections for Symfony 3.0.

  • data-form-type='collection' - label this form widget as a collection
  • data-collection-prototype - Stores the collection prototype string
  • data-collection-prototype-name - The prototype name. Used for label replacement.
  • data-collection-allow-add - The collection allows prototypes to be added
  • data-collection-allow-delete - The collection allows prototypes to be deleted

See: #5145 & #7713

@webmozart webmozart changed the title [3.0][Form] - Rename data-prototype attribute to data-collection-protoype [3.0] [Form] - Rename data-prototype attribute to data-collection-protoype Oct 16, 2014
@fabpot
Copy link
Member

fabpot commented Feb 21, 2018

Closing this old issue as it didn't get any traction.

@fabpot fabpot closed this as completed Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants