diff --git a/app/views/users/dossiers/_dossiers_list.html.haml b/app/views/users/dossiers/_dossiers_list.html.haml index 4653e544f..566447286 100644 --- a/app/views/users/dossiers/_dossiers_list.html.haml +++ b/app/views/users/dossiers/_dossiers_list.html.haml @@ -50,7 +50,7 @@ %br = pending_correction_badge(:for_user) - - if dossier.procedure.close? && !dossier.termine? + - if dossier.procedure.close? = render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: "fr-mb-2w") do |c| - c.with_body do %p @@ -62,6 +62,11 @@ = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.internal_procedure') - elsif (dossier.en_construction? || dossier.en_instruction?) && dossier.procedure.closing_reason_other? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.other', link: closing_details_path(dossier.procedure.path)).html_safe + - elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:internal_procedure)) + = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe + - elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:other)) + = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.other', link: closing_details_path(dossier.procedure.path)).html_safe + - if dossier.pending_correction? = render Dsfr::AlertComponent.new(state: :warning, size: :sm, extra_class_names: "fr-mb-2w") do |c| diff --git a/config/locales/en.yml b/config/locales/en.yml index ff14990c4..b001bd918 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -514,6 +514,9 @@ en: en_cours: internal_procedure: This procedure is closed. Your file has been submitted and can be investigated by the administration other: "This procedure is closed. Your file has been submitted and can be processed by the administration. More information here" + termine: + internal_procedure: This procedure is closed and replaced by this procedure. Your file has been processed by the administration + other: This process is closed, you cannot submit a new file. More information here transfers: sender_from_support: Technical support sender_demande_en_cours: "A transfer request is pending on file Nº %{id} to %{email}" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 3956dae4b..8645cc5bd 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -509,6 +509,9 @@ fr: en_cours: internal_procedure: Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration other: "Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration. Plus d'informations ici" + termine: + internal_procedure: Cette démarche est close et remplacée par cette démarche. Votre dossier a été traité par l'administration + other: 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. depose_at: Déposé le %{date} created_at: Créé le %{date}