demarches-normaliennes/app/views/gestionnaires/dossiers/_header.html.haml

61 lines
2.7 KiB
Text
Raw Normal View History

.sub-header
2017-07-18 15:12:55 +02:00
.container
2017-08-02 16:20:01 +02:00
.flex.justify-between
%ul.breadcrumbs
%li
2019-01-16 11:43:07 +01:00
= link_to gestionnaire_procedure_path(dossier.procedure), title: dossier.procedure.libelle do
- if dossier.procedure.brouillon?
%span.badge démarche en test
= dossier.procedure.libelle.truncate_words(10)
2017-08-02 16:20:01 +02:00
%li
= "Dossier nº #{dossier.id}"
.mixed-buttons-bar
%span.dropdown.print-menu-opener
%button.button.dropdown-button.icon-only
%span.icon.printer
%ul.print-menu.dropdown-content
%li
= link_to "Tout le dossier", print_gestionnaire_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
%li
= link_to "Uniquement cet onglet", "#", onclick: "window.print()", class: "menu-item menu-link"
- if Flipflop.download_as_zip_enabled? && dossier.attachments_downloadable?
%span.dropdown.print-menu-opener
%button.button.dropdown-button.icon-only
%span.icon.attachment
%ul.print-menu.dropdown-content
%li
= link_to "Télécharger toutes les pièces jointes", telecharger_pjs_gestionnaire_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
= render partial: "gestionnaires/procedures/dossier_actions", locals: { procedure: dossier.procedure, dossier: dossier, dossier_is_followed: current_gestionnaire&.follow?(dossier) }
%span.state-button
= render partial: "state_button", locals: { dossier: dossier }
2017-07-18 15:12:55 +02:00
%ul.tabs
- notifications_summary = current_gestionnaire.notifications_for_dossier(dossier)
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Demande',
gestionnaire_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:demande])
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Annotations privées',
annotations_privees_gestionnaire_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:annotations_privees])
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Avis externes',
avis_gestionnaire_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:avis])
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Messagerie',
messagerie_gestionnaire_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:messagerie])
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Personnes impliquées',
personnes_impliquees_gestionnaire_dossier_path(dossier.procedure, dossier))
.container
.print-header
= dossier.procedure.libelle.truncate_words(10)
>
2018-11-06 18:45:29 +01:00
= "Dossier nº #{dossier.id} (#{dossier_display_state(dossier, lower: true)})"