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
|
|
|
|
2024-03-20 11:34:54 +01:00
|
|
|
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: Current.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
|
2024-07-23 16:03:10 +02:00
|
|
|
%p.fr-text--sm= t('utils.asterisk_html')
|
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' })
|
|
|
|
|
2023-11-13 14:42:51 +01:00
|
|
|
%p= link_to t('views.users.sessions.new.reset_password'), new_user_password_path, class: "fr-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
|
|
|
|
2023-09-15 17:20:44 +02:00
|
|
|
.fr-fieldset__element
|
2024-07-24 10:42:05 +02:00
|
|
|
.fr-btns-group= f.submit t('views.users.sessions.new.connection'), class: "fr-btn"
|
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')
|
2023-09-15 17:20:44 +02:00
|
|
|
%h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant')
|
2024-07-24 10:42:05 +02:00
|
|
|
.fr-btns-group= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary"
|