]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/sessions/new.html.erb
Make the login and signup screens focus on the first input
[rails.git] / app / views / sessions / new.html.erb
index 71c0a14f3d2d2c7c58600eb9bcf170f8b5de2704..b493de73b4735d6a6569ae08e4ee12e858973e11 100644 (file)
@@ -35,7 +35,7 @@
   <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
     <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
 
-    <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %>
+    <%= f.text_field :username, :label => t(".email or username"), :autofocus => true, :tabindex => 1, :value => params[:username] %>
 
     <div class="row">
       <div class="col">