@@ -1,43 +1,31 | |||
|
1 | 1 | <%= call_hook :view_account_login_top %> |
|
2 | ||
|
2 | 3 | <div id="login-form"> |
|
3 | <%= form_tag(signin_path, onsubmit: 'return keepAnchorOnSignIn(this);') do %> | |
|
4 | <%= back_url_hidden_field_tag %> | |
|
5 | <table> | |
|
6 | <tr> | |
|
7 | <td style="text-align:right;"><label for="username"><%=l(:field_login)%>:</label></td> | |
|
8 | <td style="text-align:left;"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td> | |
|
9 | </tr> | |
|
10 | <tr> | |
|
11 | <td style="text-align:right;"><label for="password"><%=l(:field_password)%>:</label></td> | |
|
12 | <td style="text-align:left;"><%= password_field_tag 'password', nil, :tabindex => '2' %></td> | |
|
13 | </tr> | |
|
14 | <% if Setting.openid? %> | |
|
15 | <tr> | |
|
16 |
|
|
|
17 |
|
|
|
18 | </tr> | |
|
19 | <% end %> | |
|
20 | <tr> | |
|
21 | <td></td> | |
|
22 | <td style="text-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 |
|
|
|
26 | </td> | |
|
27 | </tr> | |
|
28 | <tr> | |
|
29 | <td style="text-align:left;"> | |
|
30 | <% if Setting.lost_password? %> | |
|
31 | <%= link_to l(:label_password_lost), lost_password_path %> | |
|
32 | <% end %> | |
|
33 | </td> | |
|
34 | <td style="text-align:right;"> | |
|
35 | <input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/> | |
|
36 | </td> | |
|
37 | </tr> | |
|
38 | </table> | |
|
39 | <% end %> | |
|
4 | <%= form_tag(signin_path, onsubmit: 'return keepAnchorOnSignIn(this);') do %> | |
|
5 | <%= back_url_hidden_field_tag %> | |
|
6 | ||
|
7 | <label for="username"><%=l(:field_login)%></label> | |
|
8 | <%= text_field_tag 'username', params[:username], :tabindex => '1' %> | |
|
9 | ||
|
10 | <label for="password"> | |
|
11 | <%=l(:field_password)%> | |
|
12 | <%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %> | |
|
13 | </label> | |
|
14 | <%= password_field_tag 'password', nil, :tabindex => '2' %> | |
|
15 | ||
|
16 | <% if Setting.openid? %> | |
|
17 | <label for="openid_url"><%=l(:field_identity_url)%></label> | |
|
18 | <%= text_field_tag "openid_url", nil, :tabindex => '3' %> | |
|
19 | <% end %> | |
|
20 | ||
|
21 | <% if Setting.autologin? %> | |
|
22 | <label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label> | |
|
23 | <% end %> | |
|
24 | ||
|
25 | <input type="submit" name="login" value="<%=l(:button_login)%>" tabindex="5" id="login-submit" /> | |
|
26 | <% end %> | |
|
40 | 27 | </div> |
|
28 | ||
|
41 | 29 | <%= call_hook :view_account_login_bottom %> |
|
42 | 30 | |
|
43 | 31 | <% if params[:username].present? %> |
@@ -116,18 +116,20 html>body #content { min-height: 600px; } | |||
|
116 | 116 | |
|
117 | 117 | #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;} |
|
118 | 118 | |
|
119 |
#login-form |
|
|
120 | #login-form table td {padding: 6px;} | |
|
121 | #login-form label {font-weight: bold;} | |
|
122 | #login-form input#username, #login-form input#password { width: 300px; } | |
|
119 | #login-form {margin:5em auto 2em auto; padding:20px; width:340px; border:1px solid #FDBF3B; background-color:#FFEBC1; border-radius:4px; box-sizing: border-box;} | |
|
120 | #login-form label {display:block; margin-bottom:5px;} | |
|
121 | #login-form input[type=text], #login-form input[type=password] {border:1px solid #ccc; border-radius:3px; margin-bottom:15px; padding:7px; display:block; width:100%; box-sizing: border-box;} | |
|
122 | #login-form label {font-weight:bold;} | |
|
123 | #login-form label[for=autologin] {font-weight:normal;} | |
|
124 | #login-form a.lost_password {float:right; font-weight:normal;} | |
|
125 | #login-form input#openid_url {background:#fff url(../images/openid-bg.gif) no-repeat 4px 50%; padding-left:24px !important;} | |
|
126 | #login-form input#login-submit {margin-top:15px; padding:7px; display:block; width:100%; box-sizing: border-box;} | |
|
123 | 127 | |
|
124 | 128 | div.modal { border-radius:5px; background:#fff; z-index:50; padding:4px;} |
|
125 | 129 | div.modal h3.title {display:none;} |
|
126 | 130 | div.modal p.buttons {text-align:right; margin-bottom:0;} |
|
127 | 131 | div.modal .box p {margin: 0.3em 0;} |
|
128 | 132 | |
|
129 | input#openid_url { background: url(../images/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; } | |
|
130 | ||
|
131 | 133 | .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
|
132 | 134 | |
|
133 | 135 | .mobile-show {display: none;} |
General Comments 0
You need to be logged in to leave comments.
Login now