Skip to content

Replaced "form_widget" by "form_row" in collection example #687

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
wants to merge 1 commit into from
Closed

Replaced "form_widget" by "form_row" in collection example #687

wants to merge 1 commit into from

Conversation

romaricdrigon
Copy link

Hi,

This is a port of this PR: symfony/symfony-docs#5133

I copy-paste the description below, but I guess all discussion should happen there, and we should wait on that one.

In the Form reference documentation, for the collection field, an example is given about rendering the prototype.
But form_widgetTwig function is used instead of form_row. This is a bad advice in my opinion, as rendered HTML is then different than the one for an already here field. In example, we will be missing the label.

The small fix change the function used.

@gregquat gregquat closed this Sep 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants