2017-11-30 16:49:01 +01:00
|
|
|
|
.accompagnateur-header
|
2017-07-18 15:12:55 +02:00
|
|
|
|
.container
|
2017-08-02 16:20:01 +02:00
|
|
|
|
.flex.justify-between
|
|
|
|
|
%ul.breadcrumbs
|
|
|
|
|
%li
|
2017-09-08 14:46:25 +02:00
|
|
|
|
= link_to dossier.procedure.libelle.truncate_words(10), procedure_path(dossier.procedure), title: dossier.procedure.libelle
|
2017-08-02 16:20:01 +02:00
|
|
|
|
%li
|
|
|
|
|
= "Dossier nº #{dossier.id}"
|
2017-10-23 15:19:48 +02:00
|
|
|
|
.mixed-buttons-bar
|
2017-11-23 18:00:13 +01:00
|
|
|
|
.button.dropdown.icon-only.print-menu-opener{ onclick: "javascript:TPS.togglePrintMenu(event);" }
|
|
|
|
|
.icon.printer
|
|
|
|
|
%ul.print-menu
|
|
|
|
|
%li
|
|
|
|
|
= link_to "Tout le dossier", print_dossier_path(dossier.procedure, dossier), target: "_blank", class: "menu-item menu-link"
|
|
|
|
|
%li
|
|
|
|
|
= link_to "Uniquement cet onglet", "#", onclick: "TPS.togglePrintMenu; window.print()", class: "menu-item menu-link"
|
|
|
|
|
|
2017-08-31 14:27:25 +02:00
|
|
|
|
= render partial: "new_gestionnaire/procedures/dossier_actions", locals: { procedure: dossier.procedure, dossier: dossier, dossier_is_followed: current_gestionnaire&.follow?(dossier) }
|
2017-10-05 19:12:12 +02:00
|
|
|
|
= render partial: "state_button", locals: { dossier: dossier }
|
2017-07-18 15:12:55 +02:00
|
|
|
|
%ul.tabs
|
2017-10-23 10:29:46 +02:00
|
|
|
|
- notifications_summary = current_gestionnaire.notifications_for_dossier(dossier)
|
2017-08-28 10:54:14 +02:00
|
|
|
|
%li{ class: current_page?(dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
|
2017-08-30 15:31:36 +02:00
|
|
|
|
- if notifications_summary[:demande]
|
|
|
|
|
%span.notifications{ 'aria-label': 'notifications' }
|
2017-08-28 10:50:48 +02:00
|
|
|
|
= link_to "Demande", dossier_path(dossier.procedure, dossier)
|
2017-09-27 12:08:47 +02:00
|
|
|
|
%li{ class: current_page?(annotations_privees_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
|
2017-09-27 15:08:34 +02:00
|
|
|
|
- if notifications_summary[:annotations_privees]
|
|
|
|
|
%span.notifications{ 'aria-label': 'notifications' }
|
2017-10-05 15:39:41 +02:00
|
|
|
|
= link_to "Annotations privées", annotations_privees_dossier_path(dossier.procedure, dossier)
|
2017-09-26 14:38:16 +02:00
|
|
|
|
%li{ class: current_page?(avis_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
|
2017-09-27 11:55:56 +02:00
|
|
|
|
- if notifications_summary[:avis]
|
2017-08-30 15:31:36 +02:00
|
|
|
|
%span.notifications{ 'aria-label': 'notifications' }
|
2017-10-05 15:39:41 +02:00
|
|
|
|
= link_to "Avis externes", avis_dossier_path(dossier.procedure, dossier)
|
2017-08-28 10:50:48 +02:00
|
|
|
|
%li{ class: current_page?(messagerie_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
|
2017-08-30 15:31:36 +02:00
|
|
|
|
- if notifications_summary[:messagerie]
|
|
|
|
|
%span.notifications{ 'aria-label': 'notifications' }
|
2017-08-28 10:50:48 +02:00
|
|
|
|
= link_to "Messagerie", messagerie_dossier_path(dossier.procedure, dossier)
|
2017-12-01 15:03:19 +01:00
|
|
|
|
%li{ class: current_page?(personnes_impliquees_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
|
|
|
|
|
= link_to "Personnes impliquées", personnes_impliquees_dossier_path(dossier.procedure, dossier)
|
2017-11-23 18:00:13 +01:00
|
|
|
|
|
|
|
|
|
.container
|
|
|
|
|
.print-header
|
|
|
|
|
= dossier.procedure.libelle.truncate_words(10)
|
|
|
|
|
>
|
|
|
|
|
= "Dossier nº #{dossier.id} (#{dossier.statut})"
|