Remove or change wrap class

31 views
Skip to first unread message

a.su...@gmail.com

unread,
Dec 19, 2013, 6:44:49 PM12/19/13
to plataformate...@googlegroups.com
I have a conflict with class names generated by simple_form


= f.association :city 

generates

<div class="input_wrap select required">
  <label class="select required control-label" for="customer_city_id"><abbr title="requerido">*</abbr> City</label>
  <select class="select required" id="customer_city_id" name="customer[city_id]">
    <option value=""></option>
    <option value="1">Lima</option>
  </select>
</div>


As you can note I've changed the default wrap class to 'input_wrap' with

config.wrappers :default, :class => 'input_wrap',
    :hint_class => :field_with_hint, :error_class => :field_with_errors do |b|
 # ...
end

but I want to remove or rename the "select" class

Is this possible?

Rafael Mendonça França

unread,
Dec 19, 2013, 6:49:29 PM12/19/13
to PlataformaTec - SimpleForm

--
You received this message because you are subscribed to the Google Groups "SimpleForm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-simp...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alfredo Sumaran

unread,
Dec 19, 2013, 6:58:16 PM12/19/13
to plataformate...@googlegroups.com
Thank you. It works as expected, but I'm kind of worried to not breaking the style of any other forms in the project.  This could be defined only for the view I want?
Reply all
Reply to author
Forward
0 new messages