2007-09-22 17:17:49 +04:00
|
|
|
<div id="login-form">
|
|
|
|
<% form_tag({:action=> "login"}) do %>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2008-03-01 00:18:35 +03:00
|
|
|
<td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
|
|
|
|
<td align="left"><p><%= text_field_tag 'username', nil, :size => 40 %></p></td>
|
2007-09-22 17:17:49 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
|
|
|
|
<td align="left"><%= password_field_tag 'password', nil, :size => 40 %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.autologin? %>
|
|
|
|
<label for="autologin"><%= check_box_tag 'autologin' %> <%= l(:label_stay_logged_in) %></label>
|
|
|
|
<% 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">
|
|
|
|
<input type="submit" name="login" value="<%=l(:button_login)%> »" />
|
|
|
|
</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>
|