From f1525a798fcae9dc7189293965973f67517f5fff Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Mon, 29 Nov 2021 15:00:50 +0100 Subject: [PATCH] Avis : display introduction file to experts --- app/views/instructeurs/shared/avis/_list.html.haml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/instructeurs/shared/avis/_list.html.haml b/app/views/instructeurs/shared/avis/_list.html.haml index f40d05d18..fb1f6b032 100644 --- a/app/views/instructeurs/shared/avis/_list.html.haml +++ b/app/views/instructeurs/shared/avis/_list.html.haml @@ -40,6 +40,11 @@ - if avis.revokable_by?(current_instructeur) | = link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch) + - if avis.introduction_file.attached? + = render partial: 'shared/attachment/show', locals: { attachment: avis.introduction_file.attachment } + .answer-body.mb-3 + %p #{t('views.instructeurs.avis.introduction_file_explaination')} #{avis.claimant.email} + - if avis.piece_justificative_file.attached? = render partial: 'shared/attachment/show', locals: { attachment: avis.piece_justificative_file.attachment } .answer-body