style(demande): improve margins between info generates parts

This commit is contained in:
Colin Darie 2023-06-27 17:32:22 +02:00
parent 109e9434e1
commit da9f76a538

View file

@ -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 lattestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')