2023-08-30 18:39:17 +02:00
|
|
|
|
.fr-container.fr-my-5w
|
|
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
|
.fr-col-lg-6
|
|
|
|
|
%h1.fr-h2 Espace Manager
|
|
|
|
|
= devise_error_messages!
|
2020-11-04 16:35:15 +01:00
|
|
|
|
|
2023-08-30 18:39:17 +02:00
|
|
|
|
= form_for SuperAdmin.new, url: super_admin_session_path do |f|
|
|
|
|
|
%fieldset.fr-mb-0.fr-fieldset
|
|
|
|
|
.fr-fieldset__element
|
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email', autofocus: true })
|
2020-11-04 16:35:15 +01:00
|
|
|
|
|
2023-08-30 18:39:17 +02:00
|
|
|
|
.fr-fieldset__element
|
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, opts: { autocomplete: 'current-password' })
|
2020-11-04 16:35:15 +01:00
|
|
|
|
|
2023-08-30 18:39:17 +02:00
|
|
|
|
- if SUPER_ADMIN_OTP_ENABLED
|
|
|
|
|
.fr-fieldset__element
|
2023-12-11 09:52:58 +01:00
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :otp_attempt, input_type: :number_field, opts: { inputmode: :numeric, autocomplete: 'off' }, required: false)
|
2020-11-04 16:35:15 +01:00
|
|
|
|
|
2023-08-30 18:39:17 +02:00
|
|
|
|
.fr-fieldset__element
|
2023-11-13 14:42:51 +01:00
|
|
|
|
%p= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "fr-link"
|
2020-11-04 16:35:15 +01:00
|
|
|
|
|
2023-08-30 18:39:17 +02:00
|
|
|
|
= f.submit t('views.users.sessions.new.connection'), class: "fr-btn fr-btn--lg"
|