##// END OF EJS Templates
Login field automatically focused on login form...
Jean-Philippe Lang -
r500:da4fd6b71a93
parent child
Show More
@@ -1,24 +1,25
1 1 <center>
2 2 <div class="box login">
3 3 <h2 class="icon22 icon22-authent"><%=l(:label_please_login)%></h2>
4 4
5 5 <% form_tag({:action=> "login"}, :class => "tabular") do %>
6 6 <p><label for="login"><%=l(:field_login)%>:</label>
7 7 <%= text_field_tag 'login', nil, :size => 25 %></p>
8 8
9 9 <p><label for="password"><%=l(:field_password)%>:</label>
10 10 <%= password_field_tag 'password', nil, :size => 25 %></p>
11 11
12 12 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
13 13 <% end %>
14 <%= javascript_tag "Form.Element.focus('login');" %>
14 15
15 16 <br>
16 17 <% links = []
17 18 links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
18 19 links << link_to(l(:label_password_lost), :action => 'lost_password') if Setting.lost_password?
19 20 %>
20 21 <%= links.join(" | ") %>
21 22 </p>
22 23
23 24 </div>
24 25 </center> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now