feat(piece_justificative): replace with multiple attachments for dossier en_construction

This commit is contained in:
Colin Darie 2022-12-13 16:13:31 +01:00
parent 4049240c2c
commit 013a05f24a
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
8 changed files with 147 additions and 20 deletions

View file

@ -7,10 +7,10 @@
- elsif user_can_replace?
= button_tag t('.replace'), **replace_button_options, class: "fr-btn fr-btn--tertiary fr-btn--sm", title: "Remplacer le fichier #{attachment.filename}"
.fr-py-1v
- if downloadable?
= render Dsfr::DownloadComponent.new(attachment:)
- else
- if downloadable?
= render Dsfr::DownloadComponent.new(attachment:)
- else
.fr-py-1v
%span.attachment-filename.fr-mr-1w= link_to_if(viewable?, attachment.filename.to_s, helpers.url_for(attachment.blob), title: "Ouvrir le fichier #{attachment.filename.to_s}", **helpers.external_link_attributes)
= render Attachment::ProgressComponent.new(attachment: attachment)