gitlab-org--gitlab-foss/app/views/profiles/passwords/new.html.haml
Takuya Noguchi 34609f7ce4 Fix col-sm-* in forms to keep layout
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-05-27 13:35:28 +09:00

31 lines
1 KiB
Text

- page_title _('New Password')
- breadcrumb_title _('New Password')
%h3.page-title= _('Set up new password')
%hr
= form_for @user, url: profile_password_path, method: :post do |f|
%p.slead
= _('Please set a new password before proceeding.')
%br
= _('After a successful password update you will be redirected to login screen.')
= form_errors(@user)
- unless @user.password_automatically_set?
.form-group.row
.col-sm-2.col-form-label
= f.label :current_password
.col-sm-10
= f.password_field :current_password, required: true, class: 'form-control'
.form-group.row
.col-sm-2.col-form-label
= f.label :password
.col-sm-10
= f.password_field :password, required: true, class: 'form-control'
.form-group.row
.col-sm-2.col-form-label
= f.label :password_confirmation
.col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control'
.form-actions
= f.submit _('Set new password'), class: 'btn btn-success'