Group: http://groups.google.com/group/plataformatec-simpleform/topics
- Inputs on the same row using bootstrap [2 Updates]
- has_many relation and upload file [3 Updates]
- cannot set up my first custom input correctly... No input found for [1 Update]
Tim Reistetter <treis...@gmail.com> Sep 28 07:39PM -0700
I've been googling forever, and this seems like such a simple problem. My
form is this:
<%= simple_form_for @roomtype do |f| %>
<%= f.input :name %>
<%= f.input :maxguests, label: 'Maximum Guests', :collection
=> 1..11 %>
<%= f.button :submit, 'Add Room Type' , :class => 'btn
btn-primary', :type => 'submit' %>
<% end %>
What do I need to do so that those two inputs show up next to eachother? I
know that boot strap has a horizontal form, but I want a more general
solution where I can say that in a form, these two inputs will be next to
each other? I tried using the .controls-row class option, but it didn't
seem to do anything. I'd love any help.
Javier Quarite <jqua...@gmail.com> Sep 28 10:04PM -0500
> solution where I can say that in a form, these two inputs will be next to
> each other? I tried using the .controls-row class option, but it didn't
> seem to do anything. I'd love any help.
Once a wrapped the entire form with a table and each input as a td of a
tr... maybe there's another way using <div class="row> and wrapping the
inputs with spans