diff options
author | Matt Lee <mattl@gitlab.com> | 2016-11-30 18:12:08 -0500 |
---|---|---|
committer | Matt Lee <mattl@gitlab.com> | 2016-11-30 18:12:08 -0500 |
commit | d5e53b59f87063fbe233724bf47dd9ae306ecb55 (patch) | |
tree | 60b3199a3e4f2d39013f32cd2c6b53d17679b6ad | |
parent | 24e5a1e8db943be346b4f7f4fb49326ad0e5eb9e (diff) | |
download | gitlab-ce-25169-fix-tabindex-order.tar.gz |
WIP: Fixes the tab order on the sign in form25169-fix-tabindex-order
-rw-r--r-- | app/views/devise/sessions/_new_base.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/devise/sessions/_new_base.html.haml b/app/views/devise/sessions/_new_base.html.haml index 84e13693dfd..e306d4f1d10 100644 --- a/app/views/devise/sessions/_new_base.html.haml +++ b/app/views/devise/sessions/_new_base.html.haml @@ -1,16 +1,16 @@ = form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f| %div.form-group = f.label "Username or email", for: :login - = f.text_field :login, class: "form-control top", autofocus: "autofocus", autocapitalize: "off", autocorrect: "off", required: true, title: "This field is required." + = f.text_field :login, class: "form-control top", autofocus: "autofocus", autocapitalize: "off", autocorrect: "off", required: true, title: "This field is required.", tabindex: 1 %div.form-group = f.label :password - = f.password_field :password, class: "form-control bottom", required: true, title: "This field is required." + = f.password_field :password, class: "form-control bottom", required: true, title: "This field is required.", tabindex: 2 + %div.submit-container.move-submit-down + = f.submit "Sign in", class: "btn btn-save", tabindex: 4 - if devise_mapping.rememberable? .remember-me.checkbox %label{for: "user_remember_me"} - = f.check_box :remember_me + = f.check_box :remember_me, tabindex: 3 %span Remember me .pull-right.forgot-password = link_to "Forgot your password?", new_password_path(resource_name) - %div.submit-container.move-submit-down - = f.submit "Sign in", class: "btn btn-save" |