coexistence de l'ancien comportement avec le nouveau

This commit is contained in:
clemkeirua 2020-01-13 11:26:14 +01:00
parent 0c2ccb4ae0
commit 1a1d4a9c29

View file

@ -3,9 +3,11 @@
%span.icon.printer
%ul.print-menu.dropdown-content
%li
= link_to "Tout le dossier", instructeur_dossier_path(dossier.procedure, dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
= 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 !PiecesJustificativesService.liste_pieces_justificatives(dossier).empty?
%span.dropdown.print-menu-opener