html-formhandler
html-formhandler copied to clipboard
Shortcut to initialize all fields with same attributes?
It can be tedious to add a list of attributes to every field ( e.g. when specifying the custom field_list ), especially for rendering.
e.g. I use the widget "Bootstrap3", and I want to add these attributes to every field:
element_wrapper_class: "col-md-10"
label_class: "col-md-2"
to make the horizontal form work again ( "form-horizontal" does not work in bootstrap3 )
Of course, local assigned attributes should have precendence.
Is this possible?
Mm, I think I found this:
http://search.cpan.org/~gshank/HTML-FormHandler/lib/HTML/FormHandler/Manual/Rendering.pod#html_attributes_callback