|
| 1 | +- content_for(:title, t('.cta')) |
| 2 | + |
| 3 | +#proconnect |
| 4 | + .fr-container |
| 5 | + .fr-grid-row.fr-grid-row--gutters.fr-mt-0 |
| 6 | + |
| 7 | + .fr-col-lg.fr-p-6w.fr-background-alt--blue-france |
| 8 | + |
| 9 | + #session-new.auth-form.sign-in-form |
| 10 | + = form_for User.new, url: user_session_path do |f| |
| 11 | + |
| 12 | + %h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: Current.application_name) |
| 13 | + |
| 14 | + .fr-mb-0.fr-fieldset |
| 15 | + .fr-fieldset__legend |
| 16 | + %h2.fr-h6= t('.cta') |
| 17 | + |
| 18 | + .fr-fieldset__element |
| 19 | + %p= t('.explanation') |
| 20 | + |
| 21 | + = render ProConnectLoginComponent.new |
| 22 | + |
| 23 | + - if !params[:force_pro_connect] |
| 24 | + %p.fr-hr-or= t('views.shared.france_connect_login.separator') |
| 25 | + |
| 26 | + %fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'new-account-legend' } } |
| 27 | + %legend.fr-fieldset__legend#new-account-legend |
| 28 | + %h2.fr-h6= t('views.users.sessions.new.subtitle') |
| 29 | + |
| 30 | + .fr-fieldset__element |
| 31 | + %p.fr-text--sm= t('utils.asterisk_html') |
| 32 | + |
| 33 | + .fr-fieldset__element |
| 34 | + = render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email' }) do |c| |
| 35 | + - c.with_label { t('.pro_email') } |
| 36 | + |
| 37 | + .fr-fieldset__element |
| 38 | + = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, opts: { autocomplete: 'current-password' }) |
| 39 | + |
| 40 | + %p= link_to t('views.users.sessions.new.reset_password'), new_user_password_path, class: "fr-link" |
| 41 | + |
| 42 | + .fr-fieldset__element |
| 43 | + .auth-options |
| 44 | + .flex-no-shrink |
| 45 | + = f.check_box :remember_me |
| 46 | + = f.label :remember_me, t('views.users.sessions.new.remember_me'), class: 'remember-me' |
| 47 | + |
| 48 | + .fr-btns-group= f.submit t('views.users.sessions.new.connection'), class: "fr-btn" |
| 49 | + |
| 50 | + %hr |
| 51 | + |
| 52 | + %h2.fr-h6= t('.you_are_a_citizen') |
| 53 | + .fr-btns-group= link_to t('.citizen_page'), new_user_session_path, class: "fr-btn fr-btn--secondary" |
| 54 | + |
| 55 | + .fr-col-lg.fr-p-6w |
| 56 | + = render Dsfr::CalloutComponent.new(title: t('.full_deploy_title'), icon: 'fr-icon-information-line') do |c| |
| 57 | + - c.with_body do |
| 58 | + = t('.full_deploy_body') |
| 59 | + %h2.fr-h6= t('.whats_ds', application_name: Current.application_name) |
| 60 | + = image_tag "landing/hero/dematerialiser.svg", class: "fr-responsive-img", alt: "" |
0 commit comments