diff --git a/app/views/shared/champs/rna/_show.html.haml b/app/views/shared/champs/rna/_show.html.haml index 86f03b0d3..ce989b8e7 100644 --- a/app/views/shared/champs/rna/_show.html.haml +++ b/app/views/shared/champs/rna/_show.html.haml @@ -21,3 +21,14 @@ = render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c| - c.with_value do %p= l(champ.data[scope].to_date) + + - if champ.data['address'].present? + = render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.address")) do |c| + - c.with_value do + %p= champ.full_address + + - ['code_insee', 'code_postal'].each do |scope| + - if champ.data['address'][scope].present? + = render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c| + - c.with_value do + %p= champ.data['address'][scope] diff --git a/config/locales/models/champs/rna_champ/en.yml b/config/locales/models/champs/rna_champ/en.yml index d40042092..aa6ee7bb5 100644 --- a/config/locales/models/champs/rna_champ/en.yml +++ b/config/locales/models/champs/rna_champ/en.yml @@ -9,6 +9,9 @@ en: association_date_creation: Creation date association_date_declaration: Declaration date association_date_publication: Publication date + address: Address + code_insee: INSEE code + code_postal: Postal code paste: Copy the RNA to the clipboard paste_success: The RNA has been copied to the clipboard activerecord: diff --git a/config/locales/models/champs/rna_champ/fr.yml b/config/locales/models/champs/rna_champ/fr.yml index 42d3ecfc2..edb8736a5 100644 --- a/config/locales/models/champs/rna_champ/fr.yml +++ b/config/locales/models/champs/rna_champ/fr.yml @@ -9,6 +9,9 @@ fr: association_date_creation: Date de création association_date_declaration: Date de déclaration association_date_publication: Date de publication + address: Adresse + code_insee: Code INSEE + code_postal: Code postal paste: Copier le RNA dans le presse-papier paste_success: Le RNA a été copié dans le presse-papier activerecord: diff --git a/config/locales/models/champs/rnf_champ/en.yml b/config/locales/models/champs/rnf_champ/en.yml index d1be844ab..977d9c4ab 100644 --- a/config/locales/models/champs/rnf_champ/en.yml +++ b/config/locales/models/champs/rnf_champ/en.yml @@ -15,6 +15,7 @@ en: cityCode: City code postalCode: Postal code department: Department + label: Address paste: Copy the RNF to the clipboard paste_success: The RNF has been copied to the clipboard activerecord: diff --git a/config/locales/models/champs/rnf_champ/fr.yml b/config/locales/models/champs/rnf_champ/fr.yml index fe6e4cb7d..8e4ae7812 100644 --- a/config/locales/models/champs/rnf_champ/fr.yml +++ b/config/locales/models/champs/rnf_champ/fr.yml @@ -15,6 +15,7 @@ fr: cityCode: Code INSEE postalCode: Code postal department: Département + label: Adresse paste: Copier le RNF dans le presse-papier paste_success: Le RNF a été copié dans le presse-papier activerecord: