2023-07-10 18:08:33 +02:00
|
|
|
%li.flex.align-start.fr-mb-5w
|
2022-10-06 18:08:00 +02:00
|
|
|
.flex
|
2024-05-02 16:25:00 +02:00
|
|
|
.procedure-logo{ style: "background-image: url(#{p.logo_url})" }
|
2019-12-04 15:45:06 +01:00
|
|
|
|
2022-10-06 18:08:00 +02:00
|
|
|
.procedure-details
|
2022-11-29 09:42:11 +01:00
|
|
|
.flex.clipboard-container
|
2024-05-02 14:39:23 +02:00
|
|
|
.fr-mb-2w
|
2022-11-29 09:42:11 +01:00
|
|
|
= procedure_badge(p)
|
2024-05-02 14:39:23 +02:00
|
|
|
%h3.font-weight-normal.fr-link.fr-ml-1w
|
|
|
|
= link_to("#{p.libelle} - n°#{p.id}", instructeur_procedure_path(p))
|
2023-06-12 12:05:48 +02:00
|
|
|
= render Dsfr::CopyButtonComponent.new(title: t('instructeurs.procedures.index.copy_link_button'), text: commencer_url(p.path))
|
2022-11-29 09:42:11 +01:00
|
|
|
|
2022-10-06 18:08:00 +02:00
|
|
|
%ul.procedure-stats.flex
|
|
|
|
%li
|
|
|
|
%object
|
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'a-suivre')) do
|
|
|
|
- a_suivre_count = dossiers_a_suivre_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(a_suivre_count)
|
|
|
|
.stats-legend
|
|
|
|
= t('instructeurs.dossiers.labels.to_follow')
|
|
|
|
%li
|
|
|
|
%object
|
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'suivis')) do
|
|
|
|
- if procedure_ids_en_cours_with_notifications.include?(p.id)
|
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
|
|
|
- followed_count = followed_dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(followed_count)
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.followed', count: followed_count)
|
|
|
|
%li
|
|
|
|
%object
|
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'traites')) do
|
|
|
|
- if procedure_ids_termines_with_notifications.include?(p.id)
|
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
|
|
|
- termines_count = dossiers_termines_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(termines_count)
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.processed', count: termines_count)
|
|
|
|
%li
|
|
|
|
%object
|
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'tous')) do
|
|
|
|
- dossier_count = dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(dossier_count)
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.case', count: dossier_count)
|
2021-12-02 15:56:34 +01:00
|
|
|
|
2022-10-06 18:08:00 +02:00
|
|
|
%li
|
|
|
|
%object
|
2024-07-18 14:15:29 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'supprimes')) do
|
|
|
|
- dossier_count = dossiers_supprimes_count_per_procedure[p.id] || 0
|
2022-10-06 18:08:00 +02:00
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(dossier_count)
|
|
|
|
.stats-legend
|
2024-07-18 14:15:29 +02:00
|
|
|
= t('pluralize.dossiers_supprimes', count: dossier_count)
|
2021-12-02 15:56:34 +01:00
|
|
|
|
2022-10-06 18:08:00 +02:00
|
|
|
- if p.procedure_expires_when_termine_enabled
|
2020-09-10 21:05:34 +02:00
|
|
|
%li
|
|
|
|
%object
|
2022-10-06 18:08:00 +02:00
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'expirant')) do
|
|
|
|
- expirant_count = dossiers_expirant_count_per_procedure[p.id] || 0
|
2020-09-10 21:05:34 +02:00
|
|
|
.stats-number
|
2022-10-06 18:08:00 +02:00
|
|
|
= number_with_html_delimiter(expirant_count)
|
2020-09-10 21:05:34 +02:00
|
|
|
.stats-legend
|
2022-10-06 18:08:00 +02:00
|
|
|
= t('pluralize.dossiers_close_to_expiration', count: expirant_count)
|
|
|
|
|
|
|
|
%li
|
|
|
|
%object
|
|
|
|
= link_to(instructeur_procedure_path(p, statut: 'archives')) do
|
|
|
|
- archived_count = dossiers_archived_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= number_with_html_delimiter(archived_count)
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.archived', count: archived_count)
|
2019-12-04 15:45:06 +01:00
|
|
|
|
2022-10-06 18:08:00 +02:00
|
|
|
- if p.close?
|
2023-07-10 18:08:33 +02:00
|
|
|
.ml-auto
|
|
|
|
%span.fr-badge Close
|
2022-10-06 18:08:00 +02:00
|
|
|
- elsif p.depubliee?
|
2023-07-10 18:08:33 +02:00
|
|
|
.ml-auto
|
|
|
|
%span.fr-badge Dépubliée
|