2018-09-05 14:48:42 +02:00
|
|
|
- content_for(:title, "Démarches")
|
2017-11-17 23:40:51 +01:00
|
|
|
|
2017-07-03 14:05:55 +02:00
|
|
|
.container
|
2018-09-05 14:48:42 +02:00
|
|
|
%h1.page-title Démarches
|
2017-07-03 14:05:55 +02:00
|
|
|
|
|
|
|
%ul.procedure-list
|
|
|
|
- @procedures.each do |p|
|
|
|
|
%li.procedure-item.flex.align-start
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p)) do
|
2017-09-14 10:13:48 +02:00
|
|
|
.flex
|
|
|
|
|
2019-08-28 13:11:58 +02:00
|
|
|
.procedure-logo{ style: "background-image: url(#{p.logo_url})" }
|
2017-09-14 10:13:48 +02:00
|
|
|
|
|
|
|
.procedure-details
|
|
|
|
%p.procedure-title
|
2018-08-14 15:17:22 +02:00
|
|
|
= procedure_libelle p
|
2017-07-13 15:14:03 +02:00
|
|
|
|
2017-09-14 10:13:48 +02:00
|
|
|
%ul.procedure-stats.flex
|
|
|
|
%li
|
2017-10-11 17:54:09 +02:00
|
|
|
%object
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'a-suivre')) do
|
2019-09-12 17:26:59 +02:00
|
|
|
- a_suivre_count = @dossiers_a_suivre_count_per_procedure[p.id] || 0
|
2017-10-11 17:54:09 +02:00
|
|
|
.stats-number
|
|
|
|
= a_suivre_count
|
|
|
|
.stats-legend
|
|
|
|
à suivre
|
2017-09-14 10:13:48 +02:00
|
|
|
%li
|
2017-10-11 17:54:09 +02:00
|
|
|
%object
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'suivis')) do
|
2019-09-20 10:35:44 +02:00
|
|
|
- if current_instructeur.notifications_per_procedure(:en_cours)[p.id].present?
|
2017-10-11 17:54:09 +02:00
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
2019-09-12 17:26:59 +02:00
|
|
|
- followed_count = @followed_dossiers_count_per_procedure[p.id] || 0
|
2017-10-11 17:54:09 +02:00
|
|
|
.stats-number
|
|
|
|
= followed_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.followed', count: followed_count)
|
2017-09-14 10:13:48 +02:00
|
|
|
%li
|
2017-10-11 17:54:09 +02:00
|
|
|
%object
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'traites')) do
|
2019-09-11 20:49:35 +02:00
|
|
|
- if current_instructeur.notifications_per_procedure(:termine)[p.id].present?
|
2018-02-20 15:53:07 +01:00
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
2019-09-12 17:26:59 +02:00
|
|
|
- termines_count = @dossiers_termines_count_per_procedure[p.id] || 0
|
2017-10-11 17:54:09 +02:00
|
|
|
.stats-number
|
|
|
|
= termines_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.processed', count: termines_count)
|
2017-09-14 10:13:48 +02:00
|
|
|
%li
|
2017-10-11 17:54:09 +02:00
|
|
|
%object
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'tous')) do
|
2019-09-12 17:26:59 +02:00
|
|
|
- dossier_count = @dossiers_count_per_procedure[p.id] || 0
|
2017-10-11 17:54:09 +02:00
|
|
|
.stats-number
|
|
|
|
= dossier_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.case', count: dossier_count)
|
2017-09-14 10:13:48 +02:00
|
|
|
%li
|
2017-10-11 17:54:09 +02:00
|
|
|
%object
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'archives')) do
|
2019-09-12 17:26:59 +02:00
|
|
|
- archived_count = @dossiers_archived_count_per_procedure[p.id] || 0
|
2017-10-11 17:54:09 +02:00
|
|
|
.stats-number
|
|
|
|
= archived_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.archived', count: archived_count)
|
2017-07-03 14:05:55 +02:00
|
|
|
|
2017-09-14 10:13:48 +02:00
|
|
|
- if p.archivee?
|
|
|
|
.procedure-status
|
|
|
|
%span.label Archivée
|