demarches-normaliennes/app/views/instructeurs/procedures/download_export.js.erb

11 lines
590 B
Text
Raw Normal View History

2019-12-11 17:42:44 +01:00
<%= render_to_element('.procedure-actions', partial: "download_dossiers",
2021-04-22 08:38:34 +02:00
locals: { procedure: @procedure, xlsx_export: @xlsx_export, csv_export: @csv_export, ods_export: @ods_export, dossier_count: @dossier_count }) %>
2020-01-29 12:16:38 +01:00
<% [[@xlsx_export, :xlsx], [@csv_export, :csv], [@ods_export, :ods]].each do |(export, format)| %>
<% if export && !export.ready? %>
<%= fire_event('export:update', { url: download_export_instructeur_procedure_path(@procedure, export_format: format, no_progress_notification: true) }.to_json ) %>
<% end %>
<% end %>
<%= render_flash %>