I have been playing with Rails for about a year now, and I'm working on my first application, which is actually going into production. Since this is a more utilitarian application, and it should not be very bright, I decided to use Bootstrap CSS libraries to speed up the user interface design.
I am using rails-bootstrap-forms gem and I have text fields in different divs for layout. I would like to change tabindexfor the fields to the field first_nameand last_namewere next to each other in the tabbing order. Is there a way to pass this parameter to the form generator?
Here is an HTML form snippet:
<div class="row">
<div class="col-sm-5">
<%= f.text_field :first_name, label_col: "col-xs-6", control_col: "col-xs-6" %>
<%= f.text_field :teacher, label_col: "col-xs-6", control_col: "col-xs-6" %>
</div>
<div class="col-sm-5">
<%= f.text_field :last_name, label_col: "col-xs-6", control_col: "col-xs-6" %>
<%= f.text_field :room, label_col: "col-xs-6", control_col: "col-xs-6" %>
</div>
</div>