Patch #31079 » cleanup_login_form.diff
| app/views/account/login.html.erb (Arbeitskopie) | ||
|---|---|---|
| 4 | 4 |
<%= form_tag(signin_path, onsubmit: 'return keepAnchorOnSignIn(this);') do %> |
| 5 | 5 |
<%= back_url_hidden_field_tag %> |
| 6 | 6 |
|
| 7 |
<label for="username"><%=l(:field_login)%></label> |
|
| 8 |
<%= text_field_tag 'username', params[:username], :tabindex => '1' %> |
|
| 7 |
<%= text_field_tag 'username', params[:username], :tabindex => '1', :placeholder => l(:field_login) %> |
|
| 8 |
<%= password_field_tag 'password', nil, :tabindex => '2', :placeholder => l(:field_password) %> |
|
| 9 | ||
| 9 | 10 |
|
| 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 | 11 |
<% if Setting.openid? %> |
| 17 |
<label for="openid_url"><%=l(:field_identity_url)%></label> |
|
| 18 |
<%= text_field_tag "openid_url", nil, :tabindex => '3' %> |
|
| 12 |
<%= text_field_tag "openid_url", nil, :tabindex => '3', :placeholder => l(:field_identity_url) %> |
|
| 19 | 13 |
<% end %> |
| 20 | 14 |
|
| 15 |
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %> |
|
| 16 | ||
| 21 | 17 |
<% if Setting.autologin? %> |
| 22 | 18 |
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label> |
| 23 | 19 |
<% end %> |
| public/stylesheets/application.css (Arbeitskopie) | ||
|---|---|---|
| 108 | 108 |
#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;}
|
| 109 | 109 |
#login-form label {font-weight:bold;}
|
| 110 | 110 |
#login-form label[for=autologin] {font-weight:normal;}
|
| 111 |
#login-form a.lost_password {float:right; font-weight:normal;}
|
|
| 111 |
#login-form a.lost_password {float:right; font-weight:normal; margin-bottom: 15px;}
|
|
| 112 | 112 |
#login-form input#openid_url {background:#fff url(../images/openid-bg.gif) no-repeat 4px 50%; padding-left:24px !important;}
|
| 113 | 113 |
#login-form input#login-submit {margin-top:15px; padding:7px; display:block; width:100%; box-sizing: border-box;}
|
| 114 | 114 | |
- « Previous
- 1
- 2
- 3
- Next »