Simple_form: How to remove .form-control class in check boxes & radio buttons?

Created on 4 Jul 2014  路  1Comment  路  Source: heartcombo/simple_form

I have the following in my simple form:

<%= f.input :geography_mandate_list,
              as: :check_boxes,
              wrapper_html: {class: mandate_class},
              collection: GeographyMandate.names %>

and it produces:

<span class="checkbox">
  <label for="idea_geography_mandate_list_global" name="idea[geography_mandate_list]">
    <input class="check_boxes optional form-control"
            id="idea_geography_mandate_list_global"
            name="idea[geography_mandate_list][]"
            type="checkbox"
            value="Global">
      Global
  </label>
</span>

I want to remove form-control class from the input tag across the application. How can I do this in the config file? I don't quite get how the config works. I'm using Rails 4.1 and simple_form-3.1.0.rc1. Thank you so much.

PS: You may want to consider taking the class from these input types by default as it's not nice imho.

screenshot 2014-07-04 15 37 20

>All comments

Please read the documentation at the SimpleForm bootstrap example application. http://simple-form-bootstrap.plataformatec.com.br

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mmhan picture mmhan  路  4Comments

Naokimi picture Naokimi  路  4Comments

yshmarov picture yshmarov  路  4Comments

vdaubry picture vdaubry  路  4Comments

rottingcorpse picture rottingcorpse  路  5Comments