debian-mirror-gitlab/app/views/devise/passwords/edit.html.haml

22 lines
1 KiB
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
= render 'devise/shared/tab_single', tab_title:'Change your password'
2015-04-26 12:48:37 +05:30
.login-box
.login-body
2018-03-17 18:26:18 +05:30
= form_for(resource, as: resource_name, url: password_path(:user), html: { method: :put, class: 'gl-show-field-errors' }) do |f|
2014-09-02 18:07:02 +05:30
.devise-errors
= devise_error_messages!
= f.hidden_field :reset_password_token
2016-11-03 12:29:30 +05:30
.form-group
2017-09-10 17:25:29 +05:30
= f.label 'New password', for: "user_password"
2019-03-02 22:35:43 +05:30
= f.password_field :password, class: "form-control top qa-password-field", required: true, title: 'This field is required'
2016-11-03 12:29:30 +05:30
.form-group
2017-09-10 17:25:29 +05:30
= f.label 'Confirm new password', for: "user_password_confirmation"
2018-12-05 23:21:45 +05:30
= f.password_field :password_confirmation, class: "form-control bottom qa-password-confirmation", title: 'This field is required', required: true
2015-04-26 12:48:37 +05:30
.clearfix
2018-12-05 23:21:45 +05:30
= f.submit "Change your password", class: "btn btn-primary qa-change-password-button"
2015-04-26 12:48:37 +05:30
.clearfix.prepend-top-20
%p
2016-11-03 12:29:30 +05:30
%span.light Didn't receive a confirmation email?
2018-03-17 18:26:18 +05:30
= link_to "Request a new one", new_confirmation_path(:user)
2016-11-03 12:29:30 +05:30
= render 'devise/shared/sign_in_link'