2013-03-26 2 views
0

tabindex => '1'tabindex = '1'을 시도했지만 작동하려면 탭 색인/탭 순서를 얻을 수 없습니다. :full_name에서 :telephone에서 :address으로 이동하고 싶습니다. (주문 열이 엉망입니다.) 어떤 아이디어? 미리 감사드립니다. 여기 내 코드가있다.ruby에서 html.haml 파일의 탭 순서/tabindex 설정

=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 ...' } 
+0

당신이 시도':의 tabindex => "1"'? –

답변

0

사용 input_html 옵션 :

=f.input :full_name, label: 'Full Name', placeholder: 'Full Name', input_html: { tabindex: 1 }