2022-12-06 11:42:12 +01:00
|
|
|
.fr-mb-4w.attachment-multiple{ class: class_names("fr-downloads-group": user_can_download?, "destroyable": user_can_destroy?) }
|
2022-10-25 14:14:24 +02:00
|
|
|
= template
|
|
|
|
|
2022-11-24 13:00:12 +01:00
|
|
|
%ul
|
|
|
|
- each_attachment do |attachment, index|
|
|
|
|
%li{ id: dom_id(attachment) }
|
2022-11-28 11:38:28 +01:00
|
|
|
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, index:, as_multiple: true, user_can_destroy:, user_can_download:, form_object_name:)
|
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-28 11:38:28 +01:00
|
|
|
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, index: attachments_count, user_can_destroy:, form_object_name:)
|
2022-10-25 14:14:24 +02:00
|
|
|
|
2022-11-09 12:33:20 +01:00
|
|
|
// single poll and refresh message for all attachments
|
2022-11-23 12:54:09 +01:00
|
|
|
= render Attachment::PendingPollComponent.new(attachments: attachments, poll_url:)
|