Skip to content
Snippets Groups Projects
Commit a40541c4 authored by J. Francisco Raposerias's avatar J. Francisco Raposerias
Browse files

add autofocus to username input

parent 730e79e7
No related branches found
No related tags found
Loading
= form_tag(user_omniauth_callback_path(:ldap), :class => "login-box", :id => 'new_ldap_user' ) do = form_tag(user_omniauth_callback_path(:ldap), :class => "login-box", :id => 'new_ldap_user' ) do
= image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo"
= text_field_tag :username, nil, {:class => "text top", :placeholder => "LDAP Login"} = text_field_tag :username, nil, {:class => "text top", :placeholder => "LDAP Login", :autofocus => "autofocus"}
= password_field_tag :password, nil, {:class => "text bottom", :placeholder => "Password"} = password_field_tag :password, nil, {:class => "text bottom", :placeholder => "Password"}
%br/ %br/
= submit_tag "LDAP Sign in", :class => "btn-primary btn" = submit_tag "LDAP Sign in", :class => "btn-primary btn"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment