0

試しましたがtabindex => '1'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 に答える