Revision 641b549e
Added by June Zhang over 7 years ago
app/assets/stylesheets/login.scss | ||
---|---|---|
}
|
||
.login-page .container .form-horizontal .control-label {
|
||
font-weight: 400;
|
||
padding-left: 20px;
|
||
text-align: left;
|
||
}
|
||
.login-page .container .form-horizontal .form-group:last-child,
|
||
... | ... | |
.login-page .container .submit {
|
||
text-align: right;
|
||
}
|
||
|
app/views/users/login.html.erb | ||
---|---|---|
</div>
|
||
<div class="form-group">
|
||
<div class="col-xs-offset-8 col-xs-4 submit">
|
||
<%= submit_tag(_("Login").html_safe, :class => "btn btn-primary", :data => { :disable_with => _("Please wait...") }) %>
|
||
<%= submit_tag(_("Log In").html_safe, :class => "btn btn-primary", :data => { :disable_with => _("Please wait...") }) %>
|
||
</div>
|
||
</div>
|
||
<% end %>
|
test/integration/user_test.rb | ||
---|---|---|
visit "/"
|
||
fill_in "login_login", :with => users(:admin).login
|
||
fill_in "login_password", :with => "secret"
|
||
click_button "Login"
|
||
click_button "Log In"
|
||
assert_current_path root_path
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #17679 - Fixing the style issues in Login Page
1, Update "Login" to "Log In"
2, The username should align the text box