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

41 lines
1.7 KiB
Text
Raw Normal View History

= content_for(:page_id, 'auth')
= content_for(:title, t('metas.signin.title'))
#session-new.auth-form.sign-in-form
= form_for resource, url: user_session_path, html: { class: "fr-py-5w" } do |f|
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: APPLICATION_NAME)
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'new-account-legend' } }
%legend.fr-fieldset__legend#new-account-legend
%h2.fr-h6= I18n.t('views.users.sessions.new.subtitle')
.fr-fieldset__element
%p.fr-text--sm= t('utils.mandatory_champs')
.fr-fieldset__element= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email', autofocus: true })
.fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, opts: { autocomplete: 'current-password' })
%p= link_to t('views.users.sessions.new.reset_password'), new_user_password_path, class: "link"
2017-06-20 10:09:19 +02:00
2015-11-20 17:50:27 +01:00
.fr-fieldset__element
.auth-options
.flex-no-shrink
= f.check_box :remember_me
= f.label :remember_me, t('views.users.sessions.new.remember_me'), class: 'remember-me'
2019-08-16 16:12:00 +02:00
2022-10-06 22:51:34 +02:00
= f.submit t('views.users.sessions.new.connection'), class: "fr-btn fr-btn--lg"
2017-03-07 10:15:33 +01:00
2021-11-19 10:00:04 +01:00
- if AgentConnectService.enabled?
%p.fr-hr-or= t('views.shared.france_connect_login.separator')
2021-11-19 10:00:04 +01:00
.center
2022-03-02 14:26:24 +01:00
%h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant')
2022-10-06 22:51:34 +02:00
= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary"