demarches-normaliennes/app/views/shared/dossiers/_infos_generales.html.haml

29 lines
1 KiB
Text
Raw Normal View History

%div
%p.fr-my-2w.fr-px-4v
= t(:submitted_at, scope: [:views, :shared, :dossiers, :form], datetime: l(dossier.depose_at))
%br
- if dossier.updated_at != dossier.depose_at
= t(:updated_at, scope: [:views, :shared, :dossiers, :form], datetime: l(dossier.updated_at))
2023-02-14 17:57:50 +01:00
- if dossier.justificatif_motivation.attached?
.fr-my-4v.fr-px-4v
%p.champ-label Justificatif :
.champ-content.fr-text-action-high--grey
.action
= render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment)
- if dossier.motivation.present?
.fr-my-4v.fr-px-4v
%p.champ-label Motivation :
.champ-content.fr-text-action-high--grey
.action
= dossier.motivation
- if dossier.attestation.present?
.fr-my-4v.fr-px-4v
%p.champ-label Attestation :
.champ-content.fr-text-action-high--grey
.action
= link_to('Voir lattestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')