|
|
|
@ -33,14 +33,14 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= styled_label_tag 'username', User.human_attribute_name(:login) %> |
|
|
|
|
<div class="form--field-container"> |
|
|
|
|
<%= styled_text_field_tag 'username', params[:username] %> |
|
|
|
|
<%= styled_text_field_tag 'username', params[:username], autofocus: params[:username].blank? %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= styled_label_tag 'password', User.human_attribute_name(:password) %> |
|
|
|
|
<div class="form--field-container"> |
|
|
|
|
<%= styled_password_field_tag 'password', nil, autofocus: params.include?(:username) %> |
|
|
|
|
<%= styled_password_field_tag 'password', nil, autofocus: !params[:username].blank? %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -68,5 +68,4 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<%= javascript_tag "Form.Element.focus('username');" %> |
|
|
|
|
<% end %> |
|
|
|
|