2010-03-03 23:21:05 +03:00
|
|
|
<%= call_hook :view_account_login_top %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="login-form">
|
2012-07-07 21:45:12 +04:00
|
|
|
<%= form_tag(signin_path) do %>
|
2008-07-26 12:46:33 +04:00
|
|
|
<%= back_url_hidden_field_tag %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<table>
|
|
|
|
<tr>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:right;"><label for="username"><%=l(:field_login)%>:</label></td>
|
|
|
|
<td style="text-align:left;"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
|
2007-09-22 17:17:49 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:right;"><label for="password"><%=l(:field_password)%>:</label></td>
|
|
|
|
<td style="text-align:left;"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
|
2007-09-22 17:17:49 +04:00
|
|
|
</tr>
|
2009-02-11 22:24:28 +03:00
|
|
|
<% if Setting.openid? %>
|
2009-02-11 22:07:07 +03:00
|
|
|
<tr>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:right;"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
|
|
|
|
<td style="text-align:left;"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
|
2009-02-11 22:07:07 +03:00
|
|
|
</tr>
|
2009-02-11 22:24:28 +03:00
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:left;">
|
2007-09-22 17:17:49 +04:00
|
|
|
<% if Setting.autologin? %>
|
2009-11-27 23:30:15 +03:00
|
|
|
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:left;">
|
2007-09-22 17:17:49 +04:00
|
|
|
<% if Setting.lost_password? %>
|
2012-07-07 21:45:12 +04:00
|
|
|
<%= link_to l(:label_password_lost), lost_password_path %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
</td>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td style="text-align:right;">
|
2009-11-27 23:30:15 +03:00
|
|
|
<input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/>
|
2007-09-22 17:17:49 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2010-03-03 23:21:05 +03:00
|
|
|
<%= call_hook :view_account_login_bottom %>
|
2012-10-11 21:17:30 +04:00
|
|
|
|
|
|
|
<% if params[:username].present? %>
|
|
|
|
<%= javascript_tag "$('#password').focus();" %>
|
|
|
|
<% else %>
|
|
|
|
<%= javascript_tag "$('#username').focus();" %>
|
|
|
|
<% end %>
|