2021-11-24 12:50:47 +01:00
|
|
|
- content_for(:title, t('.cta'))
|
|
|
|
|
2022-02-24 12:20:23 +01:00
|
|
|
#agentconnect
|
2023-09-15 17:34:14 +02:00
|
|
|
.fr-container
|
|
|
|
.fr-grid-row.fr-grid-row--gutters
|
2021-11-19 10:00:04 +01:00
|
|
|
|
2023-11-13 14:42:51 +01:00
|
|
|
.fr-col-lg.fr-p-6w.fr-background-alt--blue-france
|
2022-09-21 14:59:38 +02:00
|
|
|
|
2023-09-15 17:20:04 +02:00
|
|
|
#session-new.auth-form.sign-in-form
|
2023-09-15 17:34:14 +02:00
|
|
|
= form_for User.new, url: user_session_path do |f|
|
2023-09-15 17:20:04 +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)
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2023-09-15 17:20:04 +02:00
|
|
|
.fr-mb-0.fr-fieldset
|
|
|
|
.fr-fieldset__legend
|
|
|
|
%h2.fr-h6= t('.cta')
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2023-09-15 17:20:04 +02:00
|
|
|
.fr-fieldset__element
|
|
|
|
%p= t('.explanation')
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2023-09-15 17:20:04 +02:00
|
|
|
.fr-connect-group.fr-my-2w
|
|
|
|
= link_to(agent_connect_login_path, class: "fr-btn fr-connect") do
|
|
|
|
%span.fr-connect__login
|
|
|
|
= t('.signin_with')
|
|
|
|
%span.fr-connect__brand AgentConnect
|
|
|
|
%p
|
|
|
|
= link_to t('.whats_agentconnect'), 'https://agentconnect.gouv.fr/', target: '_blank', rel: "noopener"
|
|
|
|
|
|
|
|
|
|
|
|
%p.fr-hr-or= t('views.shared.france_connect_login.separator')
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2023-08-30 18:11:19 +02: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')
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2023-11-14 16:11:17 +01:00
|
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
2024-01-08 11:22:38 +01:00
|
|
|
- c.with_body do
|
2023-11-14 16:11:17 +01:00
|
|
|
= t('views.users.sessions.new.for_tiers_alert')
|
|
|
|
|
2023-08-30 18:11:19 +02:00
|
|
|
.fr-fieldset__element
|
2024-07-24 14:24:14 +02:00
|
|
|
%p.fr-text--sm= t('utils.asterisk_html')
|
2023-08-30 18:11:19 +02:00
|
|
|
|
|
|
|
.fr-fieldset__element
|
2024-01-24 12:00:32 +01:00
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email' }) do |c|
|
2023-08-30 18:11:19 +02:00
|
|
|
- c.with_label { t('.pro_email') }
|
|
|
|
|
|
|
|
.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"
|
2023-08-30 18:11:19 +02: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'
|
2022-02-24 12:20:23 +01:00
|
|
|
|
2024-07-24 14:23:02 +02:00
|
|
|
.fr-btns-group= f.submit t('views.users.sessions.new.connection'), class: "fr-btn"
|
2023-09-15 17:20:04 +02:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%h2.fr-h6= t('.you_are_a_citizen')
|
2024-07-24 14:23:02 +02:00
|
|
|
.fr-btns-group= link_to t('.citizen_page'), new_user_session_path, class: "fr-btn fr-btn--secondary"
|
2023-09-15 17:20:04 +02:00
|
|
|
|
2023-09-15 17:34:14 +02:00
|
|
|
.fr-col-lg.fr-p-6w
|
2023-09-15 17:20:04 +02:00
|
|
|
= render Dsfr::CalloutComponent.new(title: t('.full_deploy_title'), icon: 'fr-icon-information-line') do |c|
|
|
|
|
- c.with_body do
|
|
|
|
= t('.full_deploy_body')
|
2024-03-20 11:34:54 +01:00
|
|
|
%h2.fr-h6= t('.whats_ds', application_name: Current.application_name)
|
2023-09-15 17:20:04 +02:00
|
|
|
= image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: ""
|