2007-03-12 20:59:02 +03:00
|
|
|
<center>
|
|
|
|
<div class="box login">
|
2007-01-08 22:21:59 +03:00
|
|
|
<h2 class="icon22 icon22-authent"><%=l(:label_please_login)%></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<% form_tag({:action=> "login"}, :class => "tabular") do %>
|
2007-05-06 16:49:32 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><label for="login"><%=l(:field_login)%>:</label>
|
|
|
|
<%= text_field_tag 'login', nil, :size => 25 %></p>
|
|
|
|
|
|
|
|
<p><label for="password"><%=l(:field_password)%>:</label>
|
|
|
|
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
|
|
|
|
2007-05-06 16:49:32 +04:00
|
|
|
<% if Setting.autologin? %>
|
|
|
|
<p><label for="autologin"><%= check_box_tag 'autologin' %> <%= l(:label_stay_logged_in) %></label></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p><input type="submit" name="login" value="<%=l(:button_login)%> »" class="primary" /></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2007-05-05 13:23:56 +04:00
|
|
|
<%= javascript_tag "Form.Element.focus('login');" %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<% links = []
|
|
|
|
links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
|
|
|
|
links << link_to(l(:label_password_lost), :action => 'lost_password') if Setting.lost_password?
|
|
|
|
%>
|
|
|
|
<%= links.join(" | ") %>
|
2007-02-04 12:37:28 +03:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2006-07-29 13:32:58 +04:00
|
|
|
</center>
|