2019-04-01 15:03:13 +02:00
|
|
|
= content_for(:page_id, 'auth')
|
|
|
|
|
2022-01-14 14:35:30 +01:00
|
|
|
#session-new.auth-form.sign-in-form
|
2018-10-11 10:24:11 +02:00
|
|
|
|
2021-04-15 17:14:50 +02:00
|
|
|
= form_for resource, url: user_session_path, html: { class: "form" } do |f|
|
2021-04-17 18:49:00 +02:00
|
|
|
%h1.huge-title= t('views.users.sessions.new.sign_in')
|
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 }
|
|
|
|
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.label :email, t('views.users.sessions.new.email')
|
2020-03-31 16:58:36 +02:00
|
|
|
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
|
2017-06-20 10:09:19 +02:00
|
|
|
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.label :password, t('views.users.sessions.new.password', min_length: PASSWORD_MIN_LENGTH)
|
2020-03-31 16:58:36 +02:00
|
|
|
= f.password_field :password, autocomplete: 'current-password'
|
2015-11-20 17:50:27 +01:00
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
.auth-options
|
2021-04-15 17:37:23 +02:00
|
|
|
.flex-no-shrink
|
2019-11-18 23:12:03 +01:00
|
|
|
= f.check_box :remember_me
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.label :remember_me, t('views.users.sessions.new.remember_me'), class: 'remember-me'
|
2019-08-16 16:12:00 +02:00
|
|
|
|
|
|
|
.text-right
|
2021-04-17 18:49:00 +02:00
|
|
|
= link_to t('views.users.sessions.new.reset_password'), new_user_password_path, class: "link"
|
2016-01-29 13:28:32 +01:00
|
|
|
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.submit t('views.users.sessions.new.connection'), class: "button large primary expand"
|
2017-03-07 10:15:33 +01:00
|
|
|
|
2021-11-19 10:00:04 +01:00
|
|
|
- if AgentConnectService.enabled?
|
2022-02-24 12:22:03 +01:00
|
|
|
.france-connect-login-separator
|
|
|
|
= t('views.shared.france_connect_login.separator')
|
2021-11-19 10:00:04 +01:00
|
|
|
.center
|
2022-01-14 14:35:30 +01:00
|
|
|
%h2.important-header= t('views.users.sessions.new.state_civil_servant')
|
|
|
|
%br
|
|
|
|
= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "button expend secondary"
|