2023-09-11 16:36:55 +02:00
|
|
|
- title = "Exports · #{@procedure.libelle}"
|
|
|
|
- content_for(:title, title)
|
|
|
|
|
2024-10-31 14:28:14 +01:00
|
|
|
.sub-header
|
2024-11-04 18:54:08 +01:00
|
|
|
.fr-container.flex.column
|
|
|
|
= render partial: 'instructeurs/breadcrumbs',
|
|
|
|
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
|
|
|
[t('instructeurs.dossiers.header.banner.exports_list')]] }
|
|
|
|
|
2024-10-31 14:28:14 +01:00
|
|
|
= render partial: 'instructeurs/procedures/header',
|
|
|
|
locals: { procedure: @procedure }
|
2023-09-11 16:36:55 +02:00
|
|
|
|
|
|
|
.fr-container
|
2024-11-19 00:04:21 +01:00
|
|
|
%h1.fr-h4= t('.title')
|
2023-09-20 13:03:11 +02:00
|
|
|
|
2024-11-21 13:30:44 +01:00
|
|
|
= render Dsfr::CalloutComponent.new(title: nil) do |c|
|
|
|
|
- c.with_body do
|
|
|
|
%p= t('.export_description', expiration_time: Export::MAX_DUREE_CONSERVATION_EXPORT.in_hours.to_i)
|
2024-10-25 14:36:38 +02:00
|
|
|
|
2024-11-21 13:30:44 +01:00
|
|
|
- if @exports.present?
|
|
|
|
%div{ data: @exports.any?(&:pending?) ? { controller: "turbo-poll", turbo_poll_url_value: "", turbo_poll_interval_value: 10_000, turbo_poll_max_checks_value: 6 } : {} }
|
|
|
|
= render Dossiers::ExportLinkComponent.new(procedure: @procedure, exports: @exports, statut: @statut, count: @dossiers_count, class_btn: 'fr-btn--tertiary', export_url: method(:download_export_instructeur_procedure_path))
|
2023-09-11 16:36:55 +02:00
|
|
|
|
2024-11-21 13:30:44 +01:00
|
|
|
- if @exports.any?{_1.format == Export.formats.fetch(:zip)}
|
|
|
|
= render Dsfr::AlertComponent.new(title: t('.title_zip'), state: :info, extra_class_names: 'fr-mb-3w') do |c|
|
2024-01-08 11:22:38 +01:00
|
|
|
- c.with_body do
|
2024-11-21 13:30:44 +01:00
|
|
|
%p= t('.export_description_zip_html')
|
2024-10-25 14:36:38 +02:00
|
|
|
|
2024-11-21 13:30:44 +01:00
|
|
|
- else
|
|
|
|
= t('.no_export_html', expiration_time: Export::MAX_DUREE_CONSERVATION_EXPORT.in_hours.to_i )
|