2022-10-06 14:03:02 +02:00
|
|
|
%ul.fr-btns-group.fr-btns-group--sm.fr-btns-group--inline-md.fr-btns-group--icon-right
|
2023-01-05 11:05:08 +01:00
|
|
|
= render Dropdown::MenuComponent.new(wrapper: :li, menu_options: { id: 'print-menu'}, button_options: { class: ['fr-btn--tertiary', 'fr-icon-printer-line']}) do |menu|
|
|
|
|
- menu.with_button_inner_html do
|
|
|
|
Imprimer
|
2019-08-12 16:04:09 +02:00
|
|
|
|
2023-01-05 11:05:08 +01:00
|
|
|
- menu.with_item do
|
|
|
|
= link_to print_instructeur_dossier_path(dossier.procedure, dossier), role: 'menuitem', target: "_blank", rel: "noopener", class: "menu-item menu-link" do
|
|
|
|
Tout le dossier
|
|
|
|
|
|
|
|
- menu.with_item do
|
|
|
|
= link_to '#', role: 'menuitem', onclick: "window.print()", class: "menu-item menu-link" do
|
|
|
|
Uniquement cet onglet
|
|
|
|
|
|
|
|
- menu.with_item do
|
|
|
|
= link_to instructeur_dossier_path(dossier.procedure, dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link", role: 'menuitem' do
|
|
|
|
Export PDF
|
|
|
|
|
|
|
|
- if dossier.geo_data?
|
|
|
|
- menu.with_item do
|
|
|
|
= link_to geo_data_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link", role: 'menuitem' do
|
|
|
|
Export GeoJSON
|
|
|
|
|
|
|
|
= render Dropdown::MenuComponent.new(wrapper: :li, menu_options: { id: 'print-pj-menu'}, button_options: { class: ['fr-btn--tertiary', 'fr-icon-download-line']}) do |menu|
|
|
|
|
- menu.with_button_inner_html do
|
|
|
|
Télécharger
|
|
|
|
- menu.with_item do
|
|
|
|
= link_to telecharger_pjs_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link", role: 'menuitem' do
|
|
|
|
Télécharger le dossier et toutes ses pièces jointes
|
2021-04-26 10:35:22 +02:00
|
|
|
|
2022-10-06 14:03:02 +02:00
|
|
|
%li
|
|
|
|
= render partial: "instructeurs/procedures/dossier_actions",
|
|
|
|
locals: { procedure_id: dossier.procedure.id,
|
|
|
|
dossier_id: dossier.id,
|
|
|
|
state: dossier.state,
|
|
|
|
archived: dossier.archived,
|
|
|
|
dossier_is_followed: current_instructeur&.follow?(dossier),
|
|
|
|
close_to_expiration: dossier.close_to_expiration?,
|
|
|
|
hidden_by_administration: dossier.hidden_by_administration? }
|
2019-08-12 16:04:09 +02:00
|
|
|
|
2022-10-06 14:03:02 +02:00
|
|
|
%li.state-button
|
|
|
|
= render partial: "state_button", locals: { dossier: dossier }
|