2019-08-12 16:04:09 +02:00
|
|
|
%span.dropdown.print-menu-opener
|
2019-11-19 09:32:11 +01:00
|
|
|
%button.button.dropdown-button.icon-only{ title: 'imprimer' }
|
2019-08-12 16:04:09 +02:00
|
|
|
%span.icon.printer
|
|
|
|
%ul.print-menu.dropdown-content
|
|
|
|
%li
|
|
|
|
= link_to "Tout le dossier", print_instructeur_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"
|
|
|
|
|
2019-10-03 10:48:24 +02:00
|
|
|
- if !PiecesJustificativesService.liste_pieces_justificatives(dossier).empty?
|
2019-08-12 16:04:09 +02:00
|
|
|
%span.dropdown.print-menu-opener
|
|
|
|
%button.button.dropdown-button.icon-only
|
2019-10-22 12:21:16 +02:00
|
|
|
%span.icon.attached
|
2019-08-12 16:04:09 +02:00
|
|
|
%ul.print-menu.dropdown-content
|
|
|
|
%li
|
|
|
|
- if PiecesJustificativesService.pieces_justificatives_total_size(dossier) < Dossier::TAILLE_MAX_ZIP
|
|
|
|
= 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"
|
|
|
|
- else
|
|
|
|
%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}.
|
|
|
|
|
|
|
|
= render partial: "instructeurs/procedures/dossier_actions", locals: { procedure: dossier.procedure, dossier: dossier, dossier_is_followed: current_instructeur&.follow?(dossier) }
|
|
|
|
|
2019-11-19 14:22:53 +01:00
|
|
|
.state-button
|
2019-08-12 16:04:09 +02:00
|
|
|
= render partial: "state_button", locals: { dossier: dossier }
|