.fr-container.fr-my-5w .fr-grid-row.fr-col-offset-md-2.fr-col-md-8 .fr-col-12 %h1.text-center.mt-1= t('.choose_email_contact') %p= t('.intro_html', email: @fci.email_france_connect) %p= t('.use_email_for_notifications') %fieldset.fr-fieldset = form_with url: france_connect_particulier_merge_using_fc_email_path(merge_token: @fci.merge_token), method: :post, data: { controller: 'email-france-connect' } do |f| = hidden_field_tag :merge_token, @fci.merge_token %fieldset.fr-fieldset %legend.fr-fieldset__legend .fr-fieldset__element .fr-radio-group = f.radio_button :use_france_connect_email, true, id: 'use_france_connect_email_yes', class: 'fr-radio', required: true, data: { action: "email-france-connect#triggerEmailField", email_france_connect_target: "useFranceConnectEmail" } %label.fr-label.fr-text--wrap{ for: 'use_france_connect_email_yes' } = t('.keep_fc_email_html', email: h(@fci.email_france_connect)).html_safe .fr-fieldset__element .fr-radio-group = f.radio_button :use_france_connect_email, false, id: 'use_france_connect_email_no', class: 'fr-radio', required: true, data: { action: "email-france-connect#triggerEmailField", email_france_connect_target: "useFranceConnectEmail" } %label.fr-label.fr-text--wrap{ for: 'use_france_connect_email_no' } = t('.use_another_email') .fr-fieldset__element.fr-fieldset__element--inline.hidden{ aria: { hidden: true }, data: { email_france_connect_target: "emailField", controller: 'email-input', email_input_url_value: show_email_suggestions_path } } = f.label :email, t('.alternative_email'), class: "fr-label" %span.fr-hint-text.mb-1= t('activerecord.attributes.user.hints.email') = f.email_field :email, class: "fr-input" .suspect-email.hidden{ data: { "email-input-target": 'ariaRegion'}, aria: { live: 'off' } } = render Dsfr::AlertComponent.new(title: t('utils.email_suggest.wanna_say'), state: :info, heading_level: :div) do |c| - c.with_body do %p{ data: { "email-input-target": 'suggestion'} } exemple@gmail.com  ? %p = button_tag type: 'button', class: 'fr-btn fr-btn--sm fr-mr-3w', data: { action: 'click->email-input#accept'} do = t('utils.yes') = button_tag type: 'button', class: 'fr-btn fr-btn--sm', data: { action: 'click->email-input#discard'} do = t('utils.no') %div = f.submit t('.confirm'), class: 'fr-btn'