2019-12-11 17:42:44 +01:00
|
|
|
<%= render_to_element('.procedure-actions', partial: "download_dossiers",
|
|
|
|
locals: { procedure: @procedure, xlsx_export: @xlsx_export, csv_export: @csv_export, ods_export: @ods_export }) %>
|
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 %>
|
|
|
|
|
2020-04-02 16:06:00 +02:00
|
|
|
<%= render_flash %>
|