2018-05-31 16:41:58 +02:00
- content_for(:title, @subject)
2017-05-12 16:56:46 +02:00
2018-12-20 16:36:55 +01:00
%p
Bonjour,
%p
Voici le résumé de votre activité hebdomadaire :
2018-05-31 15:56:57 +02:00
- @overview[:procedure_overviews].each_with_index do |procedure_overview, index|
2017-06-27 18:00:05 +02:00
2018-12-20 17:00:00 +01:00
%h2{ style: 'font-size: 16px; font-weight: 300; margin: 25px 0 5px;' }
2017-06-27 18:00:05 +02:00
#{procedure_overview.procedure.libelle}
2019-08-06 11:02:54 +02:00
= link_to 'voir', instructeur_procedure_url(procedure_overview.procedure), style: 'color: #0069CC; font-size: 14px;'
2017-06-27 18:00:05 +02:00
%table{ cellpadding: '0', cellspacing: '0', style: 'width: 100%; padding-bottom: 20px;' }
%tbody
- if procedure_overview.created_dossiers_count > 0
%tr
%td{ style: 'padding: 2px 0;' }
%span{ style: 'font-weight: bold;' }= procedure_overview.created_dossiers_count
= procedure_overview.created_dossier_description
- if procedure_overview.dossiers_en_construction_count > 0
%tr
%td{ style: 'padding: 2px 0;' }
%span{ style: 'font-weight: bold;' }= procedure_overview.dossiers_en_construction_count
= procedure_overview.dossiers_en_construction_description
- if procedure_overview.old_dossiers_en_construction.count > 0
dont <span style='font-weight: bold; color: #FF5D60; padding: 2px 0;' >#{procedure_overview.old_dossiers_en_construction.count}</span> depuis plus de 7 jours
- if procedure_overview.old_dossiers_en_construction.count < 6
\:
2022-10-06 10:35:18 +02:00
:ruby
old_dossiers_en_construction = procedure_overview.old_dossiers_en_construction.map do |old_dossier|
link_to "nº #{old_dossier.id}", instructeur_dossier_url(procedure_overview.procedure, old_dossier), style: 'color: #0069CC;'
end.join(', ')
2017-07-12 18:17:53 +02:00
= sanitize(old_dossiers_en_construction, attributes: %w(href style))
2017-06-27 18:00:05 +02:00
- if procedure_overview.dossiers_en_instruction_count > 0
%tr
%td{ style: 'padding: 2px 0;' }
%span{ style: 'font-weight: bold;' }= procedure_overview.dossiers_en_instruction_count
= procedure_overview.dossiers_en_instruction_description
- if procedure_overview.old_dossiers_en_instruction.count > 0
dont <span style='font-weight: bold; color: #FF5D60; padding: 2px 0;' >#{procedure_overview.old_dossiers_en_instruction.count}</span> depuis plus de 7 jours
- if procedure_overview.old_dossiers_en_instruction.count < 6
\:
2022-10-06 10:35:18 +02:00
:ruby
old_dossiers_en_instruction = procedure_overview.old_dossiers_en_instruction.map do |old_dossier|
link_to "nº #{old_dossier.id}", instructeur_dossier_url(procedure_overview.procedure, old_dossier), style: 'color: #0069CC;'
end.join(', ')
2017-07-12 18:17:53 +02:00
= sanitize(old_dossiers_en_instruction, attributes: %w(href style))
2017-06-27 18:00:05 +02:00
2018-05-31 15:56:57 +02:00
- if index != (@overview[:procedure_overviews].count - 1)
2017-06-27 18:00:05 +02:00
.spacer{ style: 'border-bottom: 1px solid #CCC; margin: 25px 0 30px;' }
2018-12-20 09:35:55 +01:00
= render partial: "layouts/mailers/signature"