demarches-normaliennes/app/views/france_connect/particulier/merge.html.haml
2024-09-04 08:08:01 +00:00

42 lines
2 KiB
Text

= content_for :title, "Fusion des comptes FC et #{Current.application_name}"
.fr-container
%h1.page-title= t('.title', application_name: Current.application_name)
%p= t('.subtitle_html', email: @fci.email_france_connect, application_name: Current.application_name)
%fieldset.fr-fieldset{ aria: { labelledby: 'merge-account' } }
%legend.fr-fieldset__legend#merge-account= 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')
.fusion.hidden
%p= t('.title_fill_in_password')
= render partial: 'password_confirmation', locals: { fci: @fci, wrong_password: @wrong_password }
.mt-2
= button_to t('.link_confirm_by_email'),
france_connect_particulier_send_email_merge_request_path,
params: { email: @fci.email_france_connect, merge_token: @fci.merge_token },
class: 'fr-btn fr-btn--secondary'
.new-account.hidden
%p= t('.title_fill_in_email', application_name: Current.application_name)
= form_tag france_connect_particulier_send_email_merge_request_path, class: 'mt-2 form' do
= hidden_field_tag :merge_token, @fci.merge_token, id: dom_id(@fci, :new_account_merge_token)
= 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'
#new-account-password-confirmation.hidden