2022-11-09 12:33:20 +01:00
|
|
|
.fr-mb-4w.attachment-multiple
|
2022-10-25 14:14:24 +02:00
|
|
|
= template
|
|
|
|
|
|
|
|
- each_attachment do |attachment, index|
|
2022-11-09 12:33:20 +01:00
|
|
|
%div{ id: dom_id(attachment) }
|
2022-11-17 19:18:58 +01:00
|
|
|
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, id:, index:, as_multiple: true)
|
2022-10-25 14:14:24 +02:00
|
|
|
|
2022-11-09 12:33:20 +01:00
|
|
|
%div{ id: empty_component_id, class: class_names("hidden": !can_attach_next?) }
|
2022-11-17 19:18:58 +01:00
|
|
|
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, id:, index: attachments_count)
|
2022-10-25 14:14:24 +02:00
|
|
|
|
2022-11-09 12:33:20 +01:00
|
|
|
// single poll and refresh message for all attachments
|
|
|
|
- if in_progress?
|
|
|
|
%div{ data: poll_controller_options }
|
|
|
|
- if in_progress_long?
|
|
|
|
= render "attachments/pending_refresh", url: auto_attach_url
|