Commit a40541c42d01614c4d1aecab5f3be17b0178fcf1

Authored by J. Francisco Raposerias
1 parent 730e79e7

add autofocus to username input

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/devise/sessions/_new_ldap.html.haml
1 = form_tag(user_omniauth_callback_path(:ldap), :class => "login-box", :id => 'new_ldap_user' ) do 1 = form_tag(user_omniauth_callback_path(:ldap), :class => "login-box", :id => 'new_ldap_user' ) do
2 = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" 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 = password_field_tag :password, nil, {:class => "text bottom", :placeholder => "Password"} 4 = password_field_tag :password, nil, {:class => "text bottom", :placeholder => "Password"}
5 %br/ 5 %br/
6 = submit_tag "LDAP Sign in", :class => "btn-primary btn" 6 = submit_tag "LDAP Sign in", :class => "btn-primary btn"