heartcombo / simple_form

Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
http://blog.plataformatec.com.br/tag/simple_form
MIT License
8.21k stars 1.32k forks source link

How to customize wrapper #691

Closed ghost closed 12 years ago

ghost commented 12 years ago

Now I use bootstrap with simple form. I want to know how to do that:

<div class="control-group">
  <label class="control-label redstar" for="prependedInput">举办时间</label>
  <div class="controls">
    <input class="calchooser" type="text" name="event[start_time]" class="span3" >
    ~
    <input class="calchooser" type="text" name="event[end_time]" class="span3" >
  </div>
</div>

That is: I want to place two inputs into the same controls div,,, But I don't know how to define the wrapper. Who know? Thx.

nashby commented 12 years ago

@jockyang please use mailing list for questions. Thanks.