2018-09-26 08:56:27 +02:00
|
|
|
|
- content_for(:title, "Choix du mot de passe")
|
|
|
|
|
|
|
|
|
|
- content_for :footer do
|
|
|
|
|
= render partial: "root/footer"
|
|
|
|
|
|
2018-10-02 17:09:27 +02:00
|
|
|
|
.container.devise-container
|
2018-09-26 08:56:27 +02:00
|
|
|
|
.one-column-centered
|
|
|
|
|
= form_for @administrateur, url: { controller: 'administrateurs/activate', action: :create }, html: { class: "form" } do |f|
|
|
|
|
|
%br
|
|
|
|
|
%h1
|
|
|
|
|
Choix du mot de passe
|
|
|
|
|
|
|
|
|
|
= f.label :email, "Email"
|
|
|
|
|
= f.text_field :email, disabled: true
|
|
|
|
|
|
|
|
|
|
= f.label :password do
|
|
|
|
|
Mot de passe
|
|
|
|
|
|
2018-09-27 15:11:22 +02:00
|
|
|
|
= f.password_field :password, placeholder: 'Mot de passe', data: { remote: true, url: admin_activate_test_password_strength_path }
|
2018-09-26 08:56:53 +02:00
|
|
|
|
|
|
|
|
|
#strength-bar.password-strength
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.explication
|
|
|
|
|
%strong Aide :
|
|
|
|
|
Une courte phrase peut être un mot de passe très sécurisé.
|
2018-09-26 08:56:27 +02:00
|
|
|
|
|
|
|
|
|
= f.hidden_field :reset_password_token, value: params[:token]
|
|
|
|
|
= f.submit 'Continuer', class: 'button large primary expand', id: "submit-password", data: { disable_with: "Envoi..." }
|