2019-04-01 15:03:13 +02:00
|
|
|
= content_for(:page_id, 'auth')
|
2022-08-30 17:46:19 +02:00
|
|
|
= content_for(:title, t('metas.signin.title'))
|
2019-04-01 15:03:13 +02:00
|
|
|
|
2022-01-14 14:35:30 +01:00
|
|
|
#session-new.auth-form.sign-in-form
|
2022-12-20 17:51:36 +01:00
|
|
|
= form_for resource, url: user_session_path, html: { class: "fr-py-5w" } do |f|
|
2018-10-11 10:24:11 +02:00
|
|
|
|
2022-12-20 17:51:36 +01:00
|
|
|
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: APPLICATION_NAME)
|
2018-10-11 10:24:11 +02:00
|
|
|
|
2020-07-27 16:35:05 +02:00
|
|
|
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|
|
|
|
|
2022-12-20 17:51:36 +01:00
|
|
|
%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
|
2023-05-15 14:54:07 +02:00
|
|
|
%p.fr-text--sm= t('utils.mandatory_champs')
|
2022-12-20 17:51:36 +01:00
|
|
|
|
|
|
|
.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
|
|
|
|
2022-12-20 17:51:36 +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
|
|
|
|
2016-01-29 13:28:32 +01: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?
|
2022-12-20 17:51:36 +01:00
|
|
|
%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"
|