demarches-normaliennes/app/views/super_admins/sessions/new.html.haml

21 lines
859 B
Text
Raw Normal View History

2017-12-21 11:41:44 +01:00
.super-admin.flex.justify-center
%div
%h2.huge-title Espace Manager
.auth-form.sign-in-form
2020-11-05 17:50:44 +01:00
= form_for SuperAdmin.new, url: super_admin_session_path, html: { class: "form" } do |f|
2022-08-22 17:55:39 +02:00
%h1.fr-h2 Connectez-vous
= f.label :email, "Email"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'current-password'
- if SUPER_ADMIN_OTP_ENABLED
= f.label :otp_attempt, 'Code OTP (uniquement si vous avez déjà activé 2FA)'
= f.text_field :otp_attempt
2022-11-14 12:21:16 +01:00
%p= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "link"
= f.submit "Se connecter", class: "fr-btn fr-btn--lg"