2021-10-13 00:45:20 +02:00
|
|
|
= content_for :title, "Fusion des comptes FC et #{APPLICATION_NAME}"
|
|
|
|
|
|
|
|
.container
|
2021-11-23 13:30:07 +01:00
|
|
|
%h1.page-title= t('.title', application_name: APPLICATION_NAME)
|
2021-10-13 00:45:20 +02:00
|
|
|
|
2021-11-23 13:30:07 +01:00
|
|
|
%p= t('.subtitle', email: sanitize(@fci.email_france_connect), application_name: APPLICATION_NAME).html_safe
|
2021-10-13 09:23:40 +02:00
|
|
|
|
|
|
|
.form.mt-2
|
2021-11-23 13:30:07 +01:00
|
|
|
%label= t('.label_select_merge_flow', email: @fci.email_france_connect)
|
2021-10-13 09:23:40 +02:00
|
|
|
%fieldset.radios
|
|
|
|
%label{ onclick: "DS.showFusion(event);" }
|
2021-10-13 16:51:00 +02:00
|
|
|
= radio_button_tag :value, true, false, autocomplete: "off", id: 'it-is-mine'
|
2021-11-23 13:30:07 +01:00
|
|
|
= t('utils.yes')
|
2021-10-13 09:23:40 +02:00
|
|
|
|
2021-10-13 09:26:54 +02:00
|
|
|
%label{ onclick: "DS.showNewAccount(event);" }
|
2021-10-13 16:51:00 +02:00
|
|
|
= radio_button_tag :value, false, false, autocomplete: "off", id: 'it-is-not-mine'
|
2021-11-23 13:30:07 +01:00
|
|
|
= t('utils.no')
|
2021-10-13 09:23:40 +02:00
|
|
|
|
|
|
|
.fusion.hidden
|
2021-11-23 13:30:07 +01:00
|
|
|
%p= t('.title_fill_in_password')
|
2021-10-13 09:23:40 +02:00
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
= form_tag france_connect_particulier_merge_with_existing_account_path, remote: true, class: 'mt-2 form fconnect-form' do
|
2021-10-13 09:23:40 +02:00
|
|
|
= hidden_field_tag :merge_token, @fci.merge_token
|
|
|
|
= hidden_field_tag :email, @fci.email_france_connect
|
2021-11-17 16:21:55 +01:00
|
|
|
|
2021-11-23 13:30:07 +01:00
|
|
|
= label_tag :password, t('views.registrations.new.password_label', min_length: 8)
|
2021-11-17 16:21:55 +01:00
|
|
|
= password_field_tag :password, nil, autocomplete: 'current-password', class: 'mb-1'
|
|
|
|
.mb-2
|
2021-11-23 13:30:07 +01:00
|
|
|
= t('views.users.sessions.new.reset_password')
|
2021-11-17 16:21:55 +01:00
|
|
|
= link_to france_connect_particulier_resend_and_renew_merge_confirmation_path(merge_token: @fci.merge_token), method: :post do
|
2021-11-23 13:30:07 +01:00
|
|
|
= t('.link_confirm_by_email')
|
2021-11-17 16:21:55 +01:00
|
|
|
|
2021-11-23 13:30:07 +01:00
|
|
|
= submit_tag t('.button_merge'), class: 'button primary'
|
2021-10-13 09:26:54 +02:00
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
|
2021-10-13 09:26:54 +02:00
|
|
|
.new-account.hidden
|
2021-11-23 13:30:07 +01:00
|
|
|
%p= t('.title_fill_in_email', application_name: APPLICATION_NAME)
|
2021-10-13 09:26:54 +02:00
|
|
|
|
|
|
|
= form_tag france_connect_particulier_merge_with_new_account_path, remote: true, class: 'mt-2 form' do
|
|
|
|
= hidden_field_tag :merge_token, @fci.merge_token
|
2021-11-23 13:30:07 +01:00
|
|
|
= label_tag :email, t('views.registrations.new.email_label')
|
2021-11-17 16:21:55 +01:00
|
|
|
= email_field_tag :email, "", required: true
|
2021-11-23 13:30:07 +01:00
|
|
|
= submit_tag t('.button_use_this_email'), class: 'button primary'
|
2021-10-13 09:26:54 +02:00
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
|
2021-10-13 01:08:57 +02:00
|
|
|
.new-account-password-confirmation.hidden
|