0

我试过tabindex => '1'and tabindex = '1',但我无法让标签索引/标签顺序工作。我想从:full_name:telephone:address(它的列搞乱了排序)。有任何想法吗?提前致谢。这是我的代码。

=simple_form_for( :application, :url => users_path( application ), :method => :put ) do | f |
  .clearfix
    .column
      =f.input :full_name, label: 'Full Name', placeholder: 'Full Name'
      .help-block * please enter your legal name
      =f.input :address_1, label: 'Address', placeholder: 'Apartment, Street'
      .guardian
        =f.input :guardian_full_name, label: 'Guardian Full Name', placeholder: 'Full Name'
    .column
      =f.input :telephone, label: 'Telephone Number', as: :string
      .help-block  
      =f.input :address_2, label: ' ', placeholder: 'City, Country, Zip/Postcode'
      .control-group.boolean  
      .guardian
        =f.input :guardian_email, label: 'Guardian Email Address', placeholder: 'Email Address', as: :string
    .column#partner-details-errors
      =render 'partner_details_errors', application: application
  =f.submit 'Show Contract', class: 'btn btn-primary', data: { 'text' => 'Create Contract', 'disabled-text' => 'Creating ...' } 
4

1 回答 1

0

使用input_html选项:

=f.input :full_name, label: 'Full Name', placeholder: 'Full Name', input_html: { tabindex: 1 }
于 2013-03-26T09:21:17.613 回答