demarches-normaliennes/app/views/users/sessions/new.html.haml
2021-04-20 09:34:52 +02:00

31 lines
1.2 KiB
Text

= content_for(:page_id, 'auth')
.auth-form.sign-in-form
= form_for resource, url: user_session_path, html: { class: "form" } do |f|
%h1.huge-title= t('views.sessions.new.title')
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
= f.label :email, t('views.sessions.new.email')
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
= f.label :password, t('views.sessions.new.password', min_length: PASSWORD_MIN_LENGTH)
= f.password_field :password, autocomplete: 'current-password'
.auth-options
%div
= f.check_box :remember_me
= f.label :remember_me, t('views.sessions.new.remember_me'), class: 'remember-me'
.text-right
= link_to t('views.sessions.new.reset_password'), new_user_password_path, class: "link"
= f.submit t('views.sessions.new.connection'), class: "button large primary expand"
%hr
%p.center
%span= t('views.sessions.new.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe
%br
%br
= link_to t('views.sessions.new.find_procedure'), COMMENT_TROUVER_MA_DEMARCHE_URL, target: "_blank", class: "button expend secondary"