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'
|
|
|
|
|
2023-02-09 19:06:44 +01:00
|
|
|
.fr-container.fr-my-5w
|
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
.fr-col-lg-6
|
|
|
|
= devise_error_messages!
|
2018-10-02 16:03:15 +02:00
|
|
|
|
2023-02-09 19:06:44 +01:00
|
|
|
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :patch, class: '' }) do |f|
|
|
|
|
= f.hidden_field :reset_password_token
|
2018-10-02 16:03:15 +02:00
|
|
|
|
2016-02-08 19:32:18 +01:00
|
|
|
|
2024-09-20 15:07:16 +02:00
|
|
|
%fieldset.fr-mb-0.fr-fieldset
|
|
|
|
%legend.fr-fieldset__legend
|
2023-02-09 19:06:44 +01:00
|
|
|
%h1.fr-h2= I18n.t('views.users.passwords.edit.subtitle')
|
2023-02-07 18:06:38 +01:00
|
|
|
|
2023-02-09 19:06:44 +01:00
|
|
|
.fr-fieldset__element
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field,
|
2024-09-20 14:31:54 +02:00
|
|
|
opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}})
|
|
|
|
|
|
|
|
#password_complexity
|
|
|
|
= render PasswordComplexityComponent.new
|
2018-10-02 16:03:15 +02:00
|
|
|
|
2023-02-09 19:06:44 +01:00
|
|
|
.fr-fieldset__element
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :password_confirmation, input_type: :password_field, opts: { autocomplete: 'new-password' })
|
2018-10-02 16:03:15 +02:00
|
|
|
|
2024-09-09 17:26:47 +02:00
|
|
|
= f.submit t('views.users.passwords.edit.submit'), id: 'submit-password', disabled: :disabled, class: "fr-btn fr-btn--lg fr-mt-2w", data: { disable_with: t('views.users.passwords.edit.submit_loading') }
|