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-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({:action=> "login"}) do %>
|
2008-07-26 12:46:33 +04:00
|
|
|
<%= back_url_hidden_field_tag %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<table>
|
|
|
|
<tr>
|
2008-03-01 00:18:35 +03:00
|
|
|
<td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
|
2009-11-27 23:30:15 +03:00
|
|
|
<td align="left"><%= text_field_tag 'username', nil, :tabindex => '1' %></td>
|
2007-09-22 17:17:49 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
|
2009-11-27 23:30:15 +03:00
|
|
|
<td 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>
|
|
|
|
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
|
2009-11-27 23:30:15 +03:00
|
|
|
<td 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>
|
|
|
|
<td align="left">
|
|
|
|
<% 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>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.lost_password? %>
|
|
|
|
<%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td 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>
|
2008-03-01 00:18:35 +03:00
|
|
|
<%= javascript_tag "Form.Element.focus('username');" %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2010-03-03 23:21:05 +03:00
|
|
|
<%= call_hook :view_account_login_bottom %>
|