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

28 lines
1.2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- 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.