demarches-normaliennes/app/views/administration_mailer/dossier_expiration_summary.html.haml

29 lines
1.2 KiB
Text
Raw Normal View History

- content_for(:title, 'Expiration du délai de conservation des dossiers')
- if @expired_dossiers.present?
%h2= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count)
- @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl
%dt
- if procedure.present?
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- else
Procédure supprimée
%dd
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
- if @expiring_dossiers.present?
%h2= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count)
- @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl
%dt
- if procedure.present?
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- else
Procédure supprimée
%dd
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
- if @expired_dossiers.empty? && @expiring_dossiers.empty?
Il ny a pas de dossier expiré ou sur le point dexpirer.