2022-07-21 20:05:05 +02:00
|
|
|
-# not renderable as instructeur flagged as manager, so render it anyway
|
2022-05-11 16:11:34 +02:00
|
|
|
- if @can_download_dossiers
|
2022-05-17 17:54:41 +02:00
|
|
|
- if @statut.nil?
|
|
|
|
= turbo_stream.update_all '.procedure-actions' do
|
2024-03-13 13:51:22 +01:00
|
|
|
= render Dossiers::ExportDropdownComponent.new(procedure: @procedure, export_templates: current_instructeur.export_templates_for(@procedure), export_url: method(:download_export_instructeur_procedure_path))
|
2022-05-17 17:54:41 +02:00
|
|
|
- else
|
|
|
|
= turbo_stream.update_all '.dossiers-export' do
|
2024-03-13 13:51:22 +01:00
|
|
|
= render Dossiers::ExportDropdownComponent.new(procedure: @procedure, export_templates: current_instructeur.export_templates_for(@procedure), statut: @statut, count: @dossiers_count, export_url: method(:download_export_instructeur_procedure_path))
|
2023-12-13 10:26:33 +01:00
|
|
|
|
2023-12-13 17:04:52 +01:00
|
|
|
= turbo_stream.update "last-export-alert" do
|
2023-12-19 14:32:34 +01:00
|
|
|
= render partial: "last_export_alert", locals: { export: @last_export, statut: @statut }
|