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

39 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: Current.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
2024-07-23 16:03:10 +02:00
%p.fr-text--sm= t('utils.asterisk_html')
.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
.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
.fr-fieldset__element
.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?
%p.fr-hr-or= t('views.shared.france_connect_login.separator')
%h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant')
.fr-btns-group= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary"