2018-06-01 17:04:09 +02:00
|
|
|
|
module ConservationDeDonneesHelper
|
|
|
|
|
def politiques_conservation_de_donnees(procedure)
|
|
|
|
|
[conservation_dans_ds(procedure), conservation_hors_ds(procedure)].compact
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def conservation_dans_ds(procedure)
|
|
|
|
|
if procedure.duree_conservation_dossiers_dans_ds.present?
|
2018-08-30 16:31:00 +02:00
|
|
|
|
"Dans demarches-simplifiees.fr : #{procedure.duree_conservation_dossiers_dans_ds} mois"
|
2018-06-01 17:04:09 +02:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def conservation_hors_ds(procedure)
|
|
|
|
|
if procedure.duree_conservation_dossiers_hors_ds.present?
|
2018-08-30 16:31:00 +02:00
|
|
|
|
"Par l’administration : #{procedure.duree_conservation_dossiers_hors_ds} mois"
|
2018-06-01 17:04:09 +02:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|