Skip to content

[Twig reference] Changed the way label attributes are passed in examples #1542

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 2 commits into from
Jul 15, 2012

Conversation

michaelperrin
Copy link
Contributor

The way label attributes are passed changed in symfony/symfony@167e64f but it was not reflected in the documentation.

This has been changed in symfony/symfony@167e64f but was not reflected in the documentation.
@michaelperrin
Copy link
Contributor Author

Oh, and this is too bad that attributes have to be passed an other way for labels... I'm not sure if there is a workaround for this. Any thoughts?

@wouterj
Copy link
Member

wouterj commented Jul 9, 2012

Could you please remove the space after { and before } as mentioned in the Twig Coding Standards?

@stof
Copy link
Member

stof commented Jul 9, 2012

@michaelperrin This is done on purpose. Otherwise, when passing attributes to form_row, they are displayed on both the label and the widget (try it in 2.0 and you will see it)

@michaelperrin
Copy link
Contributor Author

@stof Thanks for the explanation :)

@michaelperrin
Copy link
Contributor Author

@wouterj I think it's now ready for merging!

weaverryan added a commit that referenced this pull request Jul 15, 2012
[Twig reference] Changed the way label attributes are passed in examples
@weaverryan weaverryan merged commit 47ac49b into symfony:master Jul 15, 2012
craigmarvelley pushed a commit to craigmarvelley/symfony that referenced this pull request Nov 26, 2013
Commits
-------

81eb722 Simpler sentence concerning upgrade of the form_label function
f6f1bb5 Update to the "Upgrade to v2.1" documentation: the way HTML attributes are passed for the `form_label` function has changed.

Discussion
----------

Update upgrade to 2.1 documentation concerning form_label

The way HTML attributes are passed for the `form_label` function has changed since this commit :
symfony@167e64f

I also made a PR for the documentation:
symfony/symfony-docs#1542
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.

4 participants