html-formhandler icon indicating copy to clipboard operation
html-formhandler copied to clipboard

Shortcut to initialize all fields with same attributes?

Open nicolasfranck opened this issue 7 years ago • 1 comments

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?

nicolasfranck avatar Mar 15 '18 15:03 nicolasfranck

Mm, I think I found this:

http://search.cpan.org/~gshank/HTML-FormHandler/lib/HTML/FormHandler/Manual/Rendering.pod#html_attributes_callback

nicolasfranck avatar Mar 19 '18 14:03 nicolasfranck