I'm using a custom theme for twitter bootstrap that surrounds the inputs in a div this way:
= simple_form_for(@user_session) do |f|
.control-group
= f.label :username, 'Usuario', class: 'control-label'
.controls
= f.input_field :username
I want to use only f.input to save coding in large forms, I ran rails generate simple_form:install to be able to modify the configuration, currently I have:
= simple_form_for(@user_session) do |f|
= f.input :username, :label => 'Usuario'
And it generates almost all the markup I need (adding the respective classes in initializers/simple_form):
<form action="/user_sessions" class="form-horizontal new_user_session" method="post">
...
<div class="control-group username">
<label class="username control-label" for="user_session_username">Usuario</label>
<input class="username" id="user_session_username" name="user_session[username]" size="50" type="text" />
</div>
...
</form>
It only needs and extra 'div' with the class 'controls' surrounding the input tag but not the label, is there any way to achieve this?
Thanks!