To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 47 / 47db8804bc6b23e367b3fe0fd5a73e75ce399c46.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.44 KB)
| 1 | 1296:038ba2d95de8 | Chris | <%= call_hook :view_account_login_top %> |
|---|---|---|---|
| 2 | <div id="login-form"> |
||
| 3 | <%= form_tag(signin_path) do %> |
||
| 4 | <%= back_url_hidden_field_tag %> |
||
| 5 | <table> |
||
| 6 | <tr> |
||
| 7 | <td align="right"><label for="username"><%=l(:field_login)%>:</label></td> |
||
| 8 | <td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td> |
||
| 9 | </tr> |
||
| 10 | <tr> |
||
| 11 | <td align="right"><label for="password"><%=l(:field_password)%>:</label></td> |
||
| 12 | <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td> |
||
| 13 | </tr> |
||
| 14 | <% if Setting.openid? %> |
||
| 15 | <tr> |
||
| 16 | <td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td> |
||
| 17 | <td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td> |
||
| 18 | </tr> |
||
| 19 | <% end %> |
||
| 20 | <tr> |
||
| 21 | <td></td> |
||
| 22 | <td align="left"> |
||
| 23 | <% if Setting.autologin? %> |
||
| 24 | <label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label> |
||
| 25 | <% end %> |
||
| 26 | </td> |
||
| 27 | </tr> |
||
| 28 | <tr> |
||
| 29 | <td align="left"> |
||
| 30 | <% if Setting.lost_password? %> |
||
| 31 | <%= link_to l(:label_password_lost), lost_password_path %> |
||
| 32 | <% end %> |
||
| 33 | </td> |
||
| 34 | <td align="right"> |
||
| 35 | <input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/> |
||
| 36 | </td> |
||
| 37 | </tr> |
||
| 38 | </table> |
||
| 39 | <% end %> |
||
| 40 | </div> |
||
| 41 | <%= call_hook :view_account_login_bottom %> |
||
| 42 | |||
| 43 | <% if params[:username].present? %> |
||
| 44 | <%= javascript_tag "$('#password').focus();" %>
|
||
| 45 | <% else %> |
||
| 46 | <%= javascript_tag "$('#username').focus();" %>
|
||
| 47 | <% end %> |