Thursday, July 10, 2014

Re: 3.x - Form Helper - checkbox nested in

Yes. But it involves nesting all the inputs inside their labels.

By setting the 'label' template to contain {{input}} you can nest inputs in the labels. Additionally, you should remove {{input}} from the various container templates you are using or you'll get two inputs.

-Mark

On Wednesday, 9 July 2014 01:37:43 UTC-4, Thomas von Hassel wrote:
Hey

Is there a non-hacky way to nest the checkbox into it's label via the string templates ?


/thomas

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: