2024-03-20 11:34:54 +01:00
|
|
|
= content_for :title, "Fusion des comptes FC et #{Current.application_name}"
|
2021-10-13 00:45:20 +02:00
|
|
|
|
2024-07-01 16:38:47 +02:00
|
|
|
.fr-container
|
2024-03-20 11:34:54 +01:00
|
|
|
%h1.page-title= t('.title', application_name: Current.application_name)
|
2021-10-13 00:45:20 +02:00
|
|
|
|
2024-03-21 09:41:52 +01:00
|
|
|
%p= t('.subtitle_html', email: @fci.email_france_connect, application_name: Current.application_name)
|
2021-10-13 09:23:40 +02:00
|
|
|
|
2024-07-01 16:38:47 +02:00
|
|
|
%fieldset.fr-fieldset
|
|
|
|
%legend.fr-fieldset__legend= t('.label_select_merge_flow', email: @fci.email_france_connect)
|
|
|
|
.fr-fieldset__element.fr-fieldset__element--inline
|
|
|
|
.fr-radio-group
|
|
|
|
%input{ type: 'radio', id: 'it-is-mine', name: 'value', value: 'true', autocomplete: "off", onclick: "DS.showFusion(event);" }
|
|
|
|
%label{ for: 'it-is-mine' }= t('utils.yes')
|
|
|
|
.fr-fieldset__element.fr-fieldset__element--inline
|
|
|
|
.fr-radio-group
|
|
|
|
%input{ type: 'radio', id: 'it-is-not-mine', name: 'value', value: 'false', autocomplete: "off", onclick: "DS.showNewAccount(event);" }
|
|
|
|
%label{ for: 'it-is-not-mine' }= 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
|
|
|
|
2022-07-13 14:03:41 +02:00
|
|
|
= form_tag france_connect_particulier_merge_with_existing_account_path, data: { turbo: true }, class: 'mt-2 form fconnect-form' do
|
|
|
|
= hidden_field_tag :merge_token, @fci.merge_token, id: dom_id(@fci, :fusion_merge_token)
|
|
|
|
= hidden_field_tag :email, @fci.email_france_connect, id: dom_id(@fci, :fusion_email)
|
2023-10-03 16:00:03 +02:00
|
|
|
.fr-input-group
|
|
|
|
= label_tag :password, t('views.registrations.new.password_label', min_length: 8), class: 'fr-label'
|
|
|
|
= password_field_tag :password, nil, autocomplete: 'current-password', class: 'mb-1 fr-input'
|
2021-11-17 16:21:55 +01:00
|
|
|
.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
|
|
|
|
2023-10-03 16:00:03 +02:00
|
|
|
= submit_tag t('.button_merge'), class: 'fr-btn'
|
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
|
2024-03-20 11:34:54 +01:00
|
|
|
%p= t('.title_fill_in_email', application_name: Current.application_name)
|
2021-10-13 09:26:54 +02:00
|
|
|
|
2022-07-13 14:03:41 +02:00
|
|
|
= form_tag france_connect_particulier_merge_with_new_account_path, data: { turbo: true }, class: 'mt-2 form' do
|
|
|
|
= hidden_field_tag :merge_token, @fci.merge_token, id: dom_id(@fci, :new_account_merge_token)
|
2024-07-01 16:38:47 +02:00
|
|
|
= label_tag :email, t('views.registrations.new.email_label'), for: dom_id(@fci, :new_account_email), class: 'fr-label'
|
|
|
|
= email_field_tag :email, "", required: true, id: dom_id(@fci, :new_account_email), class: 'mb-1 fr-input'
|
|
|
|
= submit_tag t('.button_use_this_email'), class: 'fr-btn'
|
2021-10-13 09:26:54 +02:00
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
|
2022-09-29 16:47:55 +02:00
|
|
|
#new-account-password-confirmation.hidden
|