Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radio inline with Bootstrap3 #87

Open
duxy opened this issue Jan 9, 2015 · 1 comment
Open

radio inline with Bootstrap3 #87

duxy opened this issue Jan 9, 2015 · 1 comment

Comments

@duxy
Copy link

duxy commented Jan 9, 2015

Hi,

I tried to render radio group inline with Bootstrap3 and the only way it worked was to change radio_element_wrapper => 0 in HTML::FormHandler::Widget::Wrapper::Bootstrap3 and also in HTML::FormHandler::Widget::Field::RadioGroup line 92 should be @label_class = $class; since only class="radio-inline" is necessary in latest Bootstrap3.
Is there a better way for this?

@davewood
Copy link
Contributor

Probably same issue with checkboxes that I would like to inline. (http://getbootstrap.com/css/#forms-controls)

I tried setting the label class using

label_class => ['checkbox-inline']

and

label_attr => {class =>'checkbox-inline'}

but neither resulted in the css class being added to the rendered HTML.

There is a test for inlined checkboxes. https://github.com/gshank/html-formhandler/blob/master/t/bootstrap3/inlinecheckboxes.t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants