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

32 lines
1.2 KiB
Text
Raw Normal View History

= content_for(:page_id, 'auth')
.auth-form.sign-in-form
= form_for resource, url: user_session_path, html: { class: "form" } do |f|
2021-03-17 09:43:44 +01:00
%h1.huge-title= t('views.sessions.new.title')
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
2021-03-17 09:43:44 +01:00
= f.label :email, t('views.sessions.new.email')
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
2017-06-20 10:09:19 +02:00
2021-03-17 09:43:44 +01:00
= f.label :password, t('views.sessions.new.password', min_length: PASSWORD_MIN_LENGTH)
= f.password_field :password, autocomplete: 'current-password'
2015-11-20 17:50:27 +01:00
.auth-options
.flex-no-shrink
2019-11-18 23:12:03 +01:00
= f.check_box :remember_me
2021-03-17 09:43:44 +01:00
= f.label :remember_me, t('views.sessions.new.remember_me'), class: 'remember-me'
2019-08-16 16:12:00 +02:00
.text-right
2021-03-17 09:43:44 +01:00
= link_to t('views.sessions.new.reset_password'), new_user_password_path, class: "link"
2021-03-17 09:43:44 +01:00
= f.submit t('views.sessions.new.connection'), class: "button large primary expand"
2017-03-07 10:15:33 +01:00
%hr
%p.center
2021-03-17 09:43:44 +01:00
%span= t('views.sessions.new.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe
%br
%br
2021-03-17 09:43:44 +01:00
= link_to t('views.sessions.new.find_procedure'), COMMENT_TROUVER_MA_DEMARCHE_URL, target: "_blank", class: "button expend secondary"