From 1ffeaf6c34d07fc688fb8210c66b804d91e921fd Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 20 Mar 2023 17:45:58 +0100 Subject: [PATCH] feat(siret): add copy shortcut on siret --- app/views/shared/dossiers/_identite_entreprise.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/shared/dossiers/_identite_entreprise.html.haml b/app/views/shared/dossiers/_identite_entreprise.html.haml index 9d540ea04..914186c36 100644 --- a/app/views/shared/dossiers/_identite_entreprise.html.haml +++ b/app/views/shared/dossiers/_identite_entreprise.html.haml @@ -27,7 +27,8 @@ %td= raison_sociale_or_name(etablissement) %tr %td.libelle SIRET : - %td= pretty_siret(etablissement.siret) + %td #{pretty_siret(etablissement.siret)} #{ render Dsfr::CopyButtonComponent.new(text: etablissement.siret, title: "Copier le siret dans le presse-papier", success: "Le siret a été copié dans le presse-papier") } + - unless local_assigns[:short_identity] - if etablissement.siret != etablissement.entreprise.siret_siege_social