BigW Consortium Gitlab

Commit 7fbc4f5b by Patricio Cano

Corrected the layout of the strength indicator to be more consistent throughout the application.

Fixed a test that was looking for an outdated HTML ID
parent 7039c986
......@@ -7,10 +7,11 @@ overwritten_rules =
$(document).ready ->
profileOptions = {}
profileOptions.ui =
container: "#password-strength"
showVerdictsInsideProgressBar: true
showProgressBar: false
showVerdicts: false
showPopover: true
showErrors: true
showStatus: true
errorMessages: overwritten_messages
profileOptions.rules =
activated: overwritten_rules
......@@ -19,7 +20,6 @@ $(document).ready ->
deviseOptions.common =
usernameField: "#user_username"
deviseOptions.ui =
container: "#password-strength"
showPopover: true
showErrors: true
showVerdicts: false
......
......@@ -117,6 +117,14 @@
margin-bottom: 0;
}
.progress {
margin-top: 10px;
.has-success input {
background-color: #C3FF88 !important;
}
.has-error input {
background-color: #FFA0A0 !important;
}
.has-warning input {
background-color: #FFEC8B !important;
}
......@@ -6,7 +6,7 @@
.devise-errors
= devise_error_messages!
= f.hidden_field :reset_password_token
.form-group#password-strength
.form-group
= f.password_field :password, class: "form-control top", id: "user_password_recover", placeholder: "New password", required: true
%div
= f.password_field :password_confirmation, class: "form-control bottom", placeholder: "Confirm new password", required: true
......
......@@ -14,7 +14,7 @@
.form-group
= f.label :current_password, class: 'control-label'
.col-sm-10= f.password_field :current_password, required: true, class: 'form-control'
.form-group#password-strength
.form-group
= f.label :password, class: 'control-label'
.col-sm-10= f.password_field :password, required: true, class: 'form-control', id: 'user_password_profile'
.form-group
......
......@@ -146,7 +146,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
step 'I submit new password' do
fill_in :user_current_password, with: '12345678'
fill_in :user_password, with: '12345678'
fill_in :user_password_profile, with: '12345678'
fill_in :user_password_confirmation, with: '12345678'
click_button "Set new password"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment