Commit 55d5b04b authored by o's avatar o
Browse files

autofocus on the login forms

parent cbac4110
......@@ -5,7 +5,7 @@
<tr><td>
<%= label_tag(:totp, (t :totp)) %>
</td><td>
<%= text_field_tag(:totp) %>
<%= text_field_tag(:totp, nil, autofocus: true, autocomplete: :off) %>
</td></tr><tr><td>
<%= submit_tag (t :submit) %>
</td></tr>
......
......@@ -16,7 +16,7 @@
<img src="data:image/png;base64,<%= @captcha %>" />
<% end %>
<br />
<%= text_field_tag(:pow_nonce) %>
<%= text_field_tag(:pow_nonce, nil, autofocus: true, autocomplete: :off) %>
<br />
<%= submit_tag (t :submit) %>
</div>
......
......@@ -30,7 +30,7 @@ webmail_locales_map = {
<tr><td>
<%= label_tag(:user_id, (t :user_id)) %>
</td><td>
<%= text_field_tag(:user_id) %>
<%= text_field_tag(:user_id, nil, autofocus: true) %>
</td></tr><tr><td>
<%= label_tag(:password, (t :password)) %>
</td><td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment