Fix add requested_email column to france_connect_information table Lint error

This commit is contained in:
Kara Diaby 2024-08-22 21:13:41 +00:00
parent 08fb6c856e
commit ff88a0a2a6
No known key found for this signature in database
GPG key ID: C4D1B0CF9F24D759
4 changed files with 5 additions and 3 deletions

View file

@ -15,7 +15,7 @@
.fr-radio-group .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" } = 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' } %label.fr-label.fr-text--wrap{ for: 'use_france_connect_email_yes' }
= t('.keep_fc_email_html', email: @fci.email_france_connect).html_safe = t('.keep_fc_email_html', email: h(@fci.email_france_connect)).html_safe
.fr-fieldset__element .fr-fieldset__element
.fr-radio-group .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" } = 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" }

View file

@ -6,7 +6,7 @@
= render Dsfr::AlertComponent.new(title: '', state: :info, heading_level: 'h2', extra_class_names: 'fr-mt-6w fr-mb-3w') do |c| = render Dsfr::AlertComponent.new(title: '', state: :info, heading_level: 'h2', extra_class_names: 'fr-mt-6w fr-mb-3w') do |c|
- c.with_body do - c.with_body do
%p= t('.intro_html', email: email).html_safe %p= t('.intro_html', email: h(email)).html_safe
%p= t('.click_the_link_in_the_email') %p= t('.click_the_link_in_the_email')
%p.center= link_to t('.continue'), destination_path, class: 'fr-btn' %p.center= link_to t('.continue'), destination_path, class: 'fr-btn'

View file

@ -950,7 +950,7 @@ fr:
wanna_say: 'Voulez-vous dire ?' wanna_say: 'Voulez-vous dire ?'
confirmation_sent: confirmation_sent:
confirmation_sent_by_email: Confirmez votre email confirmation_sent_by_email: Confirmez votre email
intro_html: Un mail de confirmation a été envoyé à votre adresse <span class='fr-badge fr-badge--info fr-badge--sm'>%{email}</span> intro_html: "Un mail de confirmation a été envoyé à votre adresse <span class='fr-badge fr-badge--info fr-badge--sm'>%{email}</span>"
click_the_link_in_the_email: Vous devez impérativement cliquer sur le lien du mail pour activer votre adresse et recevoir les notifications sur l'avancement de vos dossiers. click_the_link_in_the_email: Vous devez impérativement cliquer sur le lien du mail pour activer votre adresse et recevoir les notifications sur l'avancement de vos dossiers.
continue: Continuer continue: Continuer
merge: merge:

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddAlternativeEmailColumnToFranceConnectInformationTable < ActiveRecord::Migration[7.0] class AddAlternativeEmailColumnToFranceConnectInformationTable < ActiveRecord::Migration[7.0]
def change def change
add_column :france_connect_informations, :requested_email, :string add_column :france_connect_informations, :requested_email, :string