2018-08-31 17:46:12 +02:00
|
|
|
|
- content_for(:title, 'Expiration du délai de conservation des dossiers')
|
|
|
|
|
|
|
|
|
|
- if @expired_dossiers.present?
|
2018-12-20 16:36:20 +01:00
|
|
|
|
%h2= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count)
|
2018-08-31 17:46:12 +02:00
|
|
|
|
- @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
|
|
|
|
|
%dl
|
|
|
|
|
%dt
|
|
|
|
|
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
|
|
|
|
|
%dd
|
|
|
|
|
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
|
|
|
|
|
|
|
|
|
|
- if @expiring_dossiers.present?
|
2018-12-20 16:36:20 +01:00
|
|
|
|
%h2= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count)
|
2018-08-31 17:46:12 +02:00
|
|
|
|
- @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
|
|
|
|
|
%dl
|
|
|
|
|
%dt
|
|
|
|
|
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
|
|
|
|
|
%dd
|
|
|
|
|
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
|
|
|
|
|
|
|
|
|
|
- if @expired_dossiers.empty? && @expiring_dossiers.empty?
|
|
|
|
|
Il n’y a pas de dossier expiré ou sur le point d’expirer.
|