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

27 lines
1.1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%div
%p.fr-my-4v.fr-px-4v.fr-text-action-high--grey
= l(dossier.depose_at, format: '%d %B %Y %H:%m')
- if dossier.updated_at != dossier.depose_at
= t(:updated_at, scope: [:views, :shared, :dossiers, :form], datetime: l(dossier.updated_at, format: :long))
- if dossier.justificatif_motivation.attached?
.fr-my-4v.fr-px-4v
%p.fr-text-action-high--grey.fr-mb-0 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.fr-text-action-high--grey.fr-mb-0 Motivation :
.champ-content.fr-text-action-high--grey
.action
= dossier.motivation
- if dossier.attestation.present?
.fr-my-4v.fr-px-4v
%p.fr-text-action-high--grey.fr-mb-0 Attestation :
.champ-content.fr-text-action-high--grey
.action
= link_to('Voir lattestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')