[html-formfu] [patch] reverse order of labels and fields, redux

Carl Franks fireartist at gmail.com
Fri Aug 7 14:54:45 GMT 2009


2009/7/20 Toby Corkindale <toby.corkindale at strategicdata.com.au>:
> I would like it if there was a way to adjust the defaults, ie. so all
> checkboxes/radio-buttons would have their labels to the right.


(Ronald - I'm starting to look at your patch - but just want to
respond to Toby's issue first)

You can automatically set defaults using $form->default_args()
And if you set this in a Catalyst app config file, it'll take effect
throughout your entire application!
e.g.:

myapp.yml
---
'Controller::HTML::FormFu':
  constructor:
    default_args:
      elements:
        Checkbox:
          reverse_single: 1
        Radio:
          reverse_single: 1



More information about the HTML-FormFu mailing list