diff --git a/app/views/shared/dossiers/_infos_generales.html.haml b/app/views/shared/dossiers/_infos_generales.html.haml index 6ec9aedbd..e52e1a012 100644 --- a/app/views/shared/dossiers/_infos_generales.html.haml +++ b/app/views/shared/dossiers/_infos_generales.html.haml @@ -1,5 +1,5 @@ -%div - %p.fr-my-2w.fr-px-4v +.fr-px-2w + %p.fr-my-2w = t(:submitted_at, scope: [:views, :shared, :dossiers, :form], datetime: l(dossier.depose_at)) %br - if dossier.last_champ_updated_at.present? && dossier.last_champ_updated_at > dossier.depose_at @@ -7,22 +7,23 @@ - if dossier.justificatif_motivation.attached? - .fr-my-4v.fr-px-4v + -# download component already has margin bottom + %div %p.champ-label Justificatif : - .champ-content.fr-text-action-high--grey + .champ-content .action = render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment) - if dossier.motivation.present? - .fr-my-4v.fr-px-4v + .fr-mb-2w %p.champ-label Motivation : - .champ-content.fr-text-action-high--grey + .champ-content .action = dossier.motivation - if dossier.attestation.present? - .fr-my-4v.fr-px-4v + .fr-mb-2w %p.champ-label Attestation : - .champ-content.fr-text-action-high--grey + .champ-content .action = link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')