Commit a32f85ac76c0744952264378f42e01e83d85f986
Exists in
master
and in
4 other branches
Merge pull request #3139 from rapofran/auto_focus_ldap_login
Autofocus to username input (LDAP login).
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/devise/sessions/_new_ldap.html.haml
1 | 1 | = form_tag(user_omniauth_callback_path(:ldap), :class => "login-box", :id => 'new_ldap_user' ) do |
2 | 2 | = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" |
3 | - = text_field_tag :username, nil, {:class => "text top", :placeholder => "LDAP Login"} | |
3 | + = text_field_tag :username, nil, {:class => "text top", :placeholder => "LDAP Login", :autofocus => "autofocus"} | |
4 | 4 | = password_field_tag :password, nil, {:class => "text bottom", :placeholder => "Password"} |
5 | 5 | %br/ |
6 | 6 | = submit_tag "LDAP Sign in", :class => "btn-primary btn" | ... | ... |