make the text field autofocus on admin-login page

This commit is contained in:
Arpit Jalan 2016-05-25 23:41:07 +05:30
parent 58ceecd47b
commit cf97efb643

View File

@ -8,7 +8,7 @@
<% else %>
<%=form_tag({}, method: :put) do %>
<%= label_tag(:email, t('admin_login.email_input')) %>
<%= text_field_tag(:email) %><br><br>
<%= text_field_tag(:email, nil, autofocus: true) %><br><br>
<%= submit_tag t('admin_login.submit_button') %>
<% end %>
<% end %>