2022-05-11 16:08:48 +02:00
%span.dropdown.print-menu-opener{ data: { controller: 'menu-button' } }
%button.button.dropdown-button.icon-only{ title: 'imprimer', 'aria-label': 'imprimer', data: { menu_button_target: 'button' } }
2019-08-12 16:04:09 +02:00
%span.icon.printer
2022-05-11 16:08:48 +02:00
%ul#print-menu.print-menu.dropdown-content{ data: { menu_button_target: 'menu' } }
2019-08-12 16:04:09 +02:00
%li
2020-01-13 11:26:14 +01:00
= link_to "Tout le dossier", print_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
2019-08-12 16:04:09 +02:00
%li
= link_to "Uniquement cet onglet", "#", onclick: "window.print()", class: "menu-item menu-link"
2020-01-13 11:26:14 +01:00
%li
= link_to "Export PDF", instructeur_dossier_path(dossier.procedure, dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
2020-04-30 15:49:43 +02:00
- 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"
2019-08-12 16:04:09 +02:00
2022-05-11 16:08:48 +02:00
%span.dropdown.print-menu-opener{ data: { controller: 'menu-button' } }
%button.button.dropdown-button.icon-only{ data: { menu_button_target: 'button' } }
2021-05-04 10:31:13 +02:00
%span.icon.attached
2022-05-11 16:08:48 +02:00
%ul#print-pj-menu.print-menu.dropdown-content{ data: { menu_button_target: 'menu' } }
2022-04-04 11:12:07 +02:00
%li= link_to "Télécharger le dossier et toutes ses pièces jointes", telecharger_pjs_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
2019-08-12 16:04:09 +02:00
2021-04-26 10:35:22 +02:00
= render partial: "instructeurs/procedures/dossier_actions",
locals: { procedure_id: dossier.procedure.id,
dossier_id: dossier.id,
state: dossier.state,
archived: dossier.archived,
2021-12-03 16:09:51 +01:00
dossier_is_followed: current_instructeur&.follow?(dossier),
2022-03-11 13:57:53 +01:00
close_to_expiration: dossier.close_to_expiration?,
hidden_by_administration: dossier.hidden_by_administration? }
2021-04-26 10:35:22 +02:00
2019-08-12 16:04:09 +02:00
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 }