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

32 lines
1.1 KiB
Text
Raw Normal View History

2019-07-07 11:18:12 +05:30
- page_title _('New Password')
- breadcrumb_title _('New Password')
%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
2019-07-07 11:18:12 +05:30
= _('Please set a new password before proceeding.')
2014-09-02 18:07:02 +05:30
%br
2019-07-07 11:18:12 +05:30
= _('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
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :current_password, _('Current password')
.col-sm-10
= f.password_field :current_password, required: true, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :password, _('New password')
.col-sm-10
= f.password_field :password, required: true, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :password_confirmation, _('Password confirmation')
2014-09-02 18:07:02 +05:30
.col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control'
.form-actions
2021-01-03 14:25:43 +05:30
= f.submit _('Set new password'), class: 'gl-button btn btn-success'