debian-mirror-gitlab/app/views/profiles/passwords/new.html.haml

26 lines
990 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "New Password"
- header_title "New Password"
2018-12-05 23:21:45 +05:30
%h3.page-title Set up new password
2014-09-02 18:07:02 +05:30
%hr
2018-11-08 19:23:39 +05:30
= form_for @user, url: profile_password_path, method: :post do |f|
2014-09-02 18:07:02 +05:30
%p.slead
Please set a new password before proceeding.
%br
After a successful password update you will be redirected to login screen.
2016-06-02 11:05:42 +05:30
= form_errors(@user)
2015-09-25 12:07:36 +05:30
2015-04-26 12:48:37 +05:30
- unless @user.password_automatically_set?
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :current_password, class: 'col-form-label col-sm-2'
2015-04-26 12:48:37 +05:30
.col-sm-10= f.password_field :current_password, required: true, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :password, class: 'col-form-label col-sm-2'
2014-09-02 18:07:02 +05:30
.col-sm-10= f.password_field :password, required: true, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :password_confirmation, class: 'col-form-label col-sm-2'
2014-09-02 18:07:02 +05:30
.col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control'
.form-actions
2018-12-05 23:21:45 +05:30
= f.submit 'Set new password', class: "btn btn-success"