From cf97efb6439eab6eddfcda4823afd21b6c2a891a Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 25 May 2016 23:41:07 +0530 Subject: [PATCH] make the text field autofocus on admin-login page --- app/views/users/admin_login.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/admin_login.html.erb b/app/views/users/admin_login.html.erb index 2eaa56e6b76..9b40e951ec7 100644 --- a/app/views/users/admin_login.html.erb +++ b/app/views/users/admin_login.html.erb @@ -8,7 +8,7 @@ <% else %> <%=form_tag({}, method: :put) do %> <%= label_tag(:email, t('admin_login.email_input')) %> - <%= text_field_tag(:email) %>

+ <%= text_field_tag(:email, nil, autofocus: true) %>

<%= submit_tag t('admin_login.submit_button') %> <% end %> <% end %>