Hi,

I'd like to apply a custom form decorator to the checkboxes in my form
so that labels follow the checkbox instead of vice-versa. All other
elements in my form should have labels precede the form elements.

Thus, for checkboxes:
<input type="checkbox" ... /><label>My checkbox</label>

Other form elements:
<label>My input field</label><input type="text" ... />

Even through I've created a custom decorator and it works when applied
to the entire form, is there a method that I can call so that I apply
the custom decorator to just a single element (e.g. my checkbox)? If
yes, could somebody post an example?

According to the 'forms in action' book, chapter 1, section "Beyond
Generated Tables", a decorator applies only to the entire form (each
element in the form):

$this->widgetSchema->setFormFormatterName('list');

Thanks,
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to