use attached

This commit is contained in:
simon lehericey 2023-06-07 10:52:24 +02:00
parent f181126e18
commit 77c49e079f
2 changed files with 2 additions and 2 deletions

View file

@ -47,6 +47,6 @@
#accordion-116.fr-collapse.js_description_target_audience
= t('shared.procedure_description.estimated_fill_duration_detail', estimated_minutes: estimated_fill_duration_minutes(procedure))
- if notice_url(procedure).present?
- if procedure.notice.attached?
.fr-my-3w
= render Dsfr::DownloadComponent.new(attachment: procedure.notice , url: notice_url(procedure), name: t("views.shared.dossiers.edit.notice"), ephemeral_link: administrateur_signed_in?)

View file

@ -16,7 +16,7 @@
- if dossier.brouillon?
= t('views.shared.dossiers.edit.autosave')
- if notice_url(dossier.procedure).present?
- if dossier.procedure.notice.attached?
= render Dsfr::DownloadComponent.new(attachment: dossier.procedure.notice , url: notice_url(dossier.procedure), name: t("views.shared.dossiers.edit.notice"), ephemeral_link: administrateur_signed_in?)
- if dossier.show_groupe_instructeur_selector?