Bootstrap 3.2.0 with Simple_form checkbox

Maxim Gorokhovich

I have a form

 = simple_form_for([:admin, @user]) do |f|
  = f.input :email
  = f.association :roles, as: :select
  - if @user.has_role? :moderator
    = f.input :question, as: :boolean
    = f.input :answer, as: :boolean
    = f.input :comment, as: :boolean
  = f.submit 'Update'

With bootstrap 3.1 checkboxes works as expected, but with 3.2 they are not shown, just only label shown. Html code of form:

<label class="checkbox"><input checked="checked" class="boolean optional" id="user_question" name="user[question]" type="checkbox" value="1"></label>

What it can be?

Maxim Gorokhovich

Just add .form-inline to form.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Integration of simple_form with bootstrap 3

From Dev

Simple_form class form-horizontal with bootstrap 3 not working in rails 4

From Dev

Rails 4, Bootstrap 3, simple_form - form styling not working

From Dev

simple_form / bootstrap number field arrows

From Dev

Bootstrap 3 Form in Zf2

From Dev

Bootstrap 3 2-column form layout

From Dev

Bootstrap 3 form 2 columns

From Dev

Bootstrap 3 form checkbox label doesn't align with checkbox input in Chromium + Firefox

From Dev

how to upgrade simple_form gem for bootstrap 3

From Dev

simple_form custom inline_checkbox markup

From Dev

Checkbox Label overlapping the checkbox - Bootstrap3

From Dev

2 column form layout with bootstrap 3 and a colspan

From Dev

Changing checkbox icon with simple_form

From Dev

How to center bootstrap checkbox form

From Dev

using simple_form with bootstrap 3

From Dev

Integration of simple_form with bootstrap 3

From Dev

Bootstrap 3 Form in Zf2

From Dev

Simple_form class form-horizontal with bootstrap 3 not working in rails 4

From Dev

bootstrap-wysihtml5-rails with simple_form

From Dev

Integrate Bootstrap 3 into simple_form using haml on Rails 4

From Dev

Bootstrap 3 form checkbox label doesn't align with checkbox input in Chromium + Firefox

From Dev

simple_form validations with Bootstrap in Rails

From Dev

simple_form & Bootstrap styles not being applied

From Dev

Bootstrap "multiple" attribute for simple_form

From Dev

Symfony2: Setting form label for a checkbox under Bootstrap layout

From Dev

2 column form layout with bootstrap 3 and a colspan

From Dev

Bootstrap 2 to Bootstrap 3

From Dev

How to center bootstrap checkbox form

From Dev

Checkbox in form with Bootstrap JQuery and Mandril

Related Related

HotTag

Archive