fix specs

This commit is contained in:
Lisa Durand 2023-10-11 12:45:41 +02:00
parent b125f921ea
commit 2360e5e115
3 changed files with 2 additions and 4 deletions

View file

@ -4,12 +4,12 @@
- if champ.data.blank? - if champ.data.blank?
%p= t('.not_found', rna: champ.value) %p= t('.not_found', rna: champ.value)
- else - 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| = render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.value")) do |c|
- c.with_value do - c.with_value do
%p %p
= champ.value = 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| - ['association_titre', 'association_objet', ].each do |scope|
- if champ.data[scope].present? - if champ.data[scope].present?

View file

@ -26,7 +26,6 @@ en:
show: show:
not_filled: not filled not_filled: not filled
not_found: "RNA number %{rna} (no association found)" not_found: "RNA number %{rna} (no association found)"
data_fetched_title: Data received from RNA number "%{rna}"
association: association:
data_fetched: "This RNA number is linked to %{title}" data_fetched: "This RNA number is linked to %{title}"
not_found: "No association found" not_found: "No association found"

View file

@ -28,7 +28,6 @@ fr:
show: show:
not_filled: non renseigné not_filled: non renseigné
not_found: "RNA %{rna} (aucun établissement trouvé)" not_found: "RNA %{rna} (aucun établissement trouvé)"
data_fetched_title: Données obtenues grâce au RNA "%{rna}"
association: association:
data_fetched: "Ce RNA correspond à %{title}" data_fetched: "Ce RNA correspond à %{title}"
not_found: "Aucun établissement trouvé" not_found: "Aucun établissement trouvé"