diff --git a/app/views/shared/champs/rna/_show.html.haml b/app/views/shared/champs/rna/_show.html.haml index 864b4edc1..86f03b0d3 100644 --- a/app/views/shared/champs/rna/_show.html.haml +++ b/app/views/shared/champs/rna/_show.html.haml @@ -4,12 +4,12 @@ - if champ.data.blank? %p= t('.not_found', rna: champ.value) - else - %div.fr-background-alt--grey.fr-p-3v + .fr-background-alt--grey.fr-p-3v = render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.value")) do |c| - c.with_value do %p = champ.value - =render Dsfr::CopyButtonComponent.new(text: champ.value, title: t("activemodel.attributes.rna_champ.paste"), success: t("activemodel.attributes.rna_champ.paste_success")) + = render Dsfr::CopyButtonComponent.new(text: champ.value, title: t("activemodel.attributes.rna_champ.paste"), success: t("activemodel.attributes.rna_champ.paste_success")) - ['association_titre', 'association_objet', ].each do |scope| - if champ.data[scope].present? diff --git a/config/locales/shared.en.yml b/config/locales/shared.en.yml index f9e8ec865..cd59bdb0e 100644 --- a/config/locales/shared.en.yml +++ b/config/locales/shared.en.yml @@ -26,7 +26,6 @@ en: show: not_filled: not filled not_found: "RNA number %{rna} (no association found)" - data_fetched_title: Data received from RNA number "%{rna}" association: data_fetched: "This RNA number is linked to %{title}" not_found: "No association found" diff --git a/config/locales/shared.fr.yml b/config/locales/shared.fr.yml index 0295744f0..2cd62ffd7 100644 --- a/config/locales/shared.fr.yml +++ b/config/locales/shared.fr.yml @@ -28,7 +28,6 @@ fr: show: not_filled: non renseigné not_found: "RNA %{rna} (aucun établissement trouvé)" - data_fetched_title: Données obtenues grâce au RNA "%{rna}" association: data_fetched: "Ce RNA correspond à %{title}" not_found: "Aucun établissement trouvé"