2018-10-02 16:03:15 +02:00
|
|
|
- content_for(:title, 'Changement de mot de passe')
|
2016-02-08 19:32:18 +01:00
|
|
|
|
2018-10-02 16:03:15 +02:00
|
|
|
- content_for :footer do
|
|
|
|
= render partial: 'root/footer'
|
|
|
|
|
|
|
|
.container.devise-container
|
|
|
|
.one-column-centered
|
|
|
|
= devise_error_messages!
|
|
|
|
|
|
|
|
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :patch, class: 'form' }) do |f|
|
|
|
|
|
|
|
|
%h1 Changement de mot de passe
|
2016-02-08 19:32:18 +01:00
|
|
|
|
|
|
|
= f.hidden_field :reset_password_token
|
2018-10-02 16:03:15 +02:00
|
|
|
|
|
|
|
= f.label 'Nouveau mot de passe'
|
2021-09-02 21:20:30 +02:00
|
|
|
= render 'password_complexity/field', { form: f, test_complexity: populated_resource.validate_password_complexity? }
|
2018-10-02 16:03:15 +02:00
|
|
|
|
|
|
|
= f.label 'Confirmez le nouveau mot de passe'
|
|
|
|
= f.password_field :password_confirmation, autocomplete: 'off'
|
|
|
|
|
2021-09-02 21:20:30 +02:00
|
|
|
= f.submit 'Changer le mot de passe', class: 'button large primary expand', id: "submit-password", data: { disable_with: "Envoi…" }
|