29 lines
1.8 KiB
Text
29 lines
1.8 KiB
Text
%span.dropdown.print-menu-opener
|
|
%button.button.dropdown-button.icon-only{ title: 'imprimer', 'aria-label': 'imprimer' }
|
|
%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"
|
|
%li
|
|
= link_to "Export PDF", instructeur_dossier_path(dossier.procedure, dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
|
- if dossier.geo_data?
|
|
%li
|
|
= link_to "Export GeoJSON", geo_data_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
|
|
|
- if PiecesJustificativesService.liste_pieces_justificatives(dossier).present?
|
|
%span.dropdown.print-menu-opener
|
|
%button.button.dropdown-button.icon-only
|
|
%span.icon.attached
|
|
%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) }
|
|
|
|
.state-button
|
|
= render partial: "state_button", locals: { dossier: dossier }
|