2019-09-11 19:29:05 +00:00
|
|
|
= content_for :body do
|
|
|
|
- 'black-bg'
|
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
.row.align-items-center.justify-content-center.full-height
|
2019-09-11 19:29:05 +00:00
|
|
|
.col-md-5.align-self-center
|
|
|
|
.sr-only
|
|
|
|
%h2= t('.change_your_password')
|
|
|
|
%p= t('.help')
|
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
= form_for(resource, as: resource_name,
|
|
|
|
url: password_path(resource_name),
|
|
|
|
html: { method: :put }) do |f|
|
|
|
|
= render 'devise/shared/error_messages', resource: resource
|
2019-09-11 19:29:05 +00:00
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
= f.hidden_field :reset_password_token
|
2019-09-11 19:29:05 +00:00
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
.form-group
|
2019-09-11 19:29:05 +00:00
|
|
|
= f.label :password, t('.new_password'), class: 'sr-only'
|
2019-07-04 00:11:33 +00:00
|
|
|
= f.password_field :password,
|
|
|
|
autofocus: true,
|
|
|
|
autocomplete: 'new-password',
|
2019-09-11 19:29:05 +00:00
|
|
|
class: 'form-control', min: @minimum_password_length,
|
|
|
|
aria: { describedby: 'minimum_password_length' },
|
|
|
|
placeholder: t('.new_password')
|
|
|
|
- if @minimum_password_length
|
|
|
|
%small.form-text.text-muted
|
|
|
|
= t('devise.shared.minimum_password_length',
|
|
|
|
count: @minimum_password_length)
|
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
.form-group
|
2019-09-11 19:29:05 +00:00
|
|
|
= f.label :password_confirmation, t('.confirm_new_password'),
|
|
|
|
class: 'sr-only'
|
2019-07-04 00:11:33 +00:00
|
|
|
= f.password_field :password_confirmation, autocomplete: 'off',
|
2019-09-11 19:29:05 +00:00
|
|
|
class: 'form-control',
|
|
|
|
min: @minimum_password_length,
|
|
|
|
aria: { describedby: 'minimum_password_length' },
|
|
|
|
placeholder: t('.confirm_new_password')
|
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
.actions
|
|
|
|
= f.submit t('.change_my_password'),
|
2019-09-11 19:29:05 +00:00
|
|
|
class: 'btn btn-lg btn-block'
|
|
|
|
|
2019-07-04 00:11:33 +00:00
|
|
|
= render 'devise/shared/links'
|