From 005df1463a5a3b9a084c67dba4f6512a6ecb7b7f Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 6 Jan 2025 15:32:12 +0100 Subject: [PATCH] feat(archive): notice about files archiving in archives tab --- app/views/instructeurs/procedures/show.html.haml | 8 ++++++++ config/locales/en.yml | 6 ++++++ config/locales/fr.yml | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index 9a95021d9..43d7be951 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -157,6 +157,14 @@ = paginate @filtered_sorted_paginated_ids, views_prefix: 'shared' .fr-table__footer--end.flex-no-grow + - if @statut == "archives" + .fr-notice.fr-notice--warning + .fr-container--fluid.fr-px-2w + .fr-notice__body + %span.fr-notice__title= t('views.instructeurs.dossiers.archives_notice_title') + %span.fr-notice__desc + = t('views.instructeurs.dossiers.archives_notice_html', app_name: APPLICATION_NAME, duration_months: @procedure.duree_conservation_dossiers_dans_ds, doc_url: ARCHIVAGE_DOC_URL) + - else %h2.empty-text = t('views.instructeurs.dossiers.no_file') diff --git a/config/locales/en.yml b/config/locales/en.yml index 44bc6adc5..8375e0599 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -410,6 +410,12 @@ en: passer_en_instruction_blocked_by_pending_correction: | It is not possible to switch to instruction while the file is awaiting correction. If necessary, the instructor who requested the correction can delete the corresponding message. + archives_notice_title: Files archiving + archives_notice_html: | + These files will be deleted when their retention period in %{app_name} (%{duration_months} months) expires. + Learn more +
+ To save and archive your files on your server, you must download them. avis: introduction_file_explaination: "File attached to the request for advice" search: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 61759077e..91b80bd38 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -412,6 +412,12 @@ fr: passer_en_instruction_blocked_by_pending_correction: | Le passage en instruction est impossible tant que le dossier est en attente de correction. Si nécessaire, l’instructeur ayant demandé la correction peut supprimer le message correspondant. + archives_notice_title: Archivage des dossiers + archives_notice_html: | + Ces dossiers seront supprimés lorsque leur délai de conservation dans %{app_name} (%{duration_months} mois) sera expiré. + En savoir plus +
+ Pour sauvegarder et archiver vos dossiers sur votre serveur, vous devez les télécharger. avis: introduction_file_explaination: "Fichier joint à la demande d’avis" search: