From d5af83787236d8d318ce6a83cbd10fb01727b059 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Thu, 28 Mar 2024 11:45:27 +0100 Subject: [PATCH] feat(messagerie_missing_link): Add link to messaging system in the alert block - fix #10198 --- app/views/users/dossiers/_dossiers_list.html.haml | 2 +- config/locales/en.yml | 2 +- config/locales/fr.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/users/dossiers/_dossiers_list.html.haml b/app/views/users/dossiers/_dossiers_list.html.haml index aca28fff0..f39db33c6 100644 --- a/app/views/users/dossiers/_dossiers_list.html.haml +++ b/app/views/users/dossiers/_dossiers_list.html.haml @@ -72,7 +72,7 @@ = render Dsfr::AlertComponent.new(state: :warning, size: :sm, extra_class_names: "fr-mb-2w") do |c| - c.with_body do %p - = t('views.users.dossiers.dossiers_list.pending_correction') + = t('views.users.dossiers.dossiers_list.pending_correction_html', link: messagerie_dossier_path(dossier)) - if dossier.transfer.present? - if @statut == "dossiers-transferes" diff --git a/config/locales/en.yml b/config/locales/en.yml index 7201771cd..14638d5e5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -500,7 +500,7 @@ en: no_result_text_with_filter: found with selected filters no_result_reset_filter: Reset filters procedure_closed: This procedure has been closed, you will not be able to submit a file again from the procedure link, contact your administration for more information. - pending_correction: This file is waiting for your corrections. Consult the changes to be made in the messaging system. + pending_correction_html: "This file is waiting for your corrections. Consult the changes to be made in the messaging system." depose_at: First submission on %{date} created_at: Created at %{date} updated_at: updated at %{date} diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 2bb6b1491..6f7f3f233 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -512,7 +512,7 @@ fr: termine: internal_procedure_html: Cette démarche est close et remplacée par cette démarche. Votre dossier a été traité par l'administration other_html: Cette démarche est close, vous ne pourrez pas déposer de nouveau dossier à partir du lien de la démarche. Plus d'informations ici - pending_correction: Ce dossier attend vos corrections. Consultez les modifications à apporter dans la messagerie. + pending_correction_html: "Ce dossier attend vos corrections. Consultez les modifications à apporter dans la messagerie." depose_at: Déposé le %{date} created_at: Créé le %{date} updated_at: modifié le %{date}