extract actions and info from dropdown

This commit is contained in:
Lisa Durand 2023-02-14 17:57:50 +01:00
parent 58c287dad9
commit b7a5f8bf7f
7 changed files with 65 additions and 117 deletions

View file

@ -3,9 +3,24 @@
%tr
%td.libelle Déposé le :
%td= l(dossier.depose_at, format: '%d %B %Y')
- if dossier.motivation.present?
%tr
%td.libelle Motivation :
%td
.action
= dossier.motivation
- if dossier.justificatif_motivation.attached?
%tr
%td.libelle Justificatif :
%td
.action
= render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment)
- if dossier.attestation.present?
%tr
%td.libelle Attestation :
%td
.action
= link_to(attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')