-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Added option for not displaying a form-label by setting label to false. #5421
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
Conversation
…tml.twig Option for not displaying a label by setting label to false.
…tml.twig Fixed formatting & translation ..
The same should be done for the PHP rendering |
and this is breaking a lots of tests |
@BenjaminBeck can you update this PR to implement the feature in the PHP templates too ? |
@stof yes, i´ll do it. Can you please tell me where i can find the PHP templates? |
in FrameworkBundle |
@BenjaminBeck Do you have time to finish this PR? |
@fabpot Sorry, in the next 2-3 weeks i will have no time to finish it. |
closed in favor of #6262 |
This PR was merged into the master branch. Commits ------- d5426f0 [Form] Add tests to prove that label is not rendered when is marked as false 120547c [Form][TwigBridge] Don't set label attributes if is marked as not to be rendered [Form][FrameworkBundle] Add option to disable rendering of label for fields 36e4556 [Form] Option for not displaying a label by setting label to false. [Form] Fixed formatting & translation .. Discussion ---------- [Form] Added option for not displaying a form-label by setting label to false Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: yes Replaces: #5421 @fabpot @BenjaminBeck: I was just not sure what to do with "table based" forms, so I left `<td></td>` rendered when there is no label, because I'm not sure that we can hide it easily. --------------------------------------------------------------------------- by XWB at 2012-12-11T09:30:14Z :+1:
....twig
Option for not displaying a label by setting label to false.