2018-04-23 17:22:20 +02:00
|
|
|
|
.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-08-06 11:02:54 +02:00
|
|
|
|
= link_to instructeur_procedure_path(dossier.procedure), title: dossier.procedure.libelle do
|
2019-01-16 11:43:07 +01:00
|
|
|
|
- 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}"
|
2017-10-23 15:19:48 +02:00
|
|
|
|
.mixed-buttons-bar
|
2018-09-11 17:51:44 +02:00
|
|
|
|
%span.dropdown.print-menu-opener
|
|
|
|
|
%button.button.dropdown-button.icon-only
|
|
|
|
|
%span.icon.printer
|
|
|
|
|
%ul.print-menu.dropdown-content
|
2017-11-23 18:00:13 +01:00
|
|
|
|
%li
|
2019-08-06 11:02:54 +02:00
|
|
|
|
= link_to "Tout le dossier", print_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
2017-11-23 18:00:13 +01:00
|
|
|
|
%li
|
2018-09-11 17:51:44 +02:00
|
|
|
|
= link_to "Uniquement cet onglet", "#", onclick: "window.print()", class: "menu-item menu-link"
|
2019-07-18 09:36:19 +02:00
|
|
|
|
- if Flipflop.download_as_zip_enabled? && !PiecesJustificativesService.liste_pieces_justificatives(dossier).empty?
|
2019-07-01 15:55:37 +02:00
|
|
|
|
%span.dropdown.print-menu-opener
|
|
|
|
|
%button.button.dropdown-button.icon-only
|
|
|
|
|
%span.icon.attachment
|
|
|
|
|
%ul.print-menu.dropdown-content
|
|
|
|
|
%li
|
2019-07-18 16:47:59 +02:00
|
|
|
|
- if PiecesJustificativesService.pieces_justificatives_total_size(dossier) < Dossier::TAILLE_MAX_ZIP
|
2019-08-06 11:02:54 +02:00
|
|
|
|
= link_to "Télécharger toutes les pièces jointes", telecharger_pjs_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
2019-07-18 09:36:19 +02:00
|
|
|
|
- else
|
2019-07-18 16:47:59 +02:00
|
|
|
|
%p.menu-item Le téléchargement des pièces jointes est désactivé pour les dossiers de plus de #{number_to_human_size Dossier::TAILLE_MAX_ZIP}.
|
2019-07-01 15:55:37 +02:00
|
|
|
|
|
2017-11-23 18:00:13 +01:00
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
|
= render partial: "instructeurs/procedures/dossier_actions", locals: { procedure: dossier.procedure, dossier: dossier, dossier_is_followed: current_instructeur&.follow?(dossier) }
|
2018-09-13 17:13:09 +02:00
|
|
|
|
%span.state-button
|
|
|
|
|
= render partial: "state_button", locals: { dossier: dossier }
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2017-07-18 15:12:55 +02:00
|
|
|
|
%ul.tabs
|
2019-08-06 11:02:54 +02:00
|
|
|
|
- notifications_summary = current_instructeur.notifications_for_dossier(dossier)
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2018-09-06 14:02:02 +02:00
|
|
|
|
= dynamic_tab_item('Demande',
|
2019-08-06 11:02:54 +02:00
|
|
|
|
instructeur_dossier_path(dossier.procedure, dossier),
|
2018-08-16 16:30:55 +02:00
|
|
|
|
notification: notifications_summary[:demande])
|
|
|
|
|
|
2018-09-06 14:02:02 +02:00
|
|
|
|
= dynamic_tab_item('Annotations privées',
|
2019-08-06 11:02:54 +02:00
|
|
|
|
annotations_privees_instructeur_dossier_path(dossier.procedure, dossier),
|
2018-08-16 16:30:55 +02:00
|
|
|
|
notification: notifications_summary[:annotations_privees])
|
|
|
|
|
|
2018-09-06 14:02:02 +02:00
|
|
|
|
= dynamic_tab_item('Avis externes',
|
2019-08-06 11:02:54 +02:00
|
|
|
|
avis_instructeur_dossier_path(dossier.procedure, dossier),
|
2018-08-16 16:30:55 +02:00
|
|
|
|
notification: notifications_summary[:avis])
|
|
|
|
|
|
2018-09-06 14:02:02 +02:00
|
|
|
|
= dynamic_tab_item('Messagerie',
|
2019-08-06 11:02:54 +02:00
|
|
|
|
messagerie_instructeur_dossier_path(dossier.procedure, dossier),
|
2018-08-16 16:30:55 +02:00
|
|
|
|
notification: notifications_summary[:messagerie])
|
|
|
|
|
|
2018-09-06 14:02:02 +02:00
|
|
|
|
= dynamic_tab_item('Personnes impliquées',
|
2019-08-06 11:02:54 +02:00
|
|
|
|
personnes_impliquees_instructeur_dossier_path(dossier.procedure, dossier))
|
2017-11-23 18:00:13 +01:00
|
|
|
|
|
|
|
|
|
.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)})"
|