From ca55fc9c4015eeb132c08c4618aeae6315ec6c6f Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 3 Jul 2024 10:23:57 +0200 Subject: [PATCH] style(demande): fix horizontal alignements en construction --- app/views/users/dossiers/demande.html.haml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/app/views/users/dossiers/demande.html.haml b/app/views/users/dossiers/demande.html.haml index 543b3c867..ef21d650e 100644 --- a/app/views/users/dossiers/demande.html.haml +++ b/app/views/users/dossiers/demande.html.haml @@ -6,20 +6,15 @@ .dossier-container.fr-mb-4w = render partial: 'users/dossiers/show/header', locals: { dossier: @dossier } - - if @dossier.en_construction? - .fr-container - .fr-grid-row.fr-grid-row--center - .fr-col-xl-10 - = render Dossiers::EnConstructionNotSubmittedComponent.new(dossier: @dossier, user: current_user) .fr-container .fr-grid-row.fr-grid-row--center .fr-col-md-9 + - if @dossier.en_construction? + = render Dossiers::EnConstructionNotSubmittedComponent.new(dossier: @dossier, user: current_user) + = render partial: 'shared/dossiers/demande', locals: { dossier: @dossier, demande_seen_at: nil, profile: 'usager' } - - - if !@dossier.read_only? - .fr-container.fr-mt-2w - .fr-grid-row.fr-grid-row--center - .fr-col-xl-8.fr-col-offset-xl-2 - %p= link_to t('views.users.dossiers.demande.edit_dossier'), modifier_dossier_path(@dossier), class: 'fr-btn fr-btn-sm', - title: t('views.users.dossiers.demande.edit_dossier_title') + - if !@dossier.read_only? + .fr-px-2w.fr-mt-2w + %p= link_to t('views.users.dossiers.demande.edit_dossier'), modifier_dossier_path(@dossier), class: 'fr-btn fr-btn-sm', + title: t('views.users.dossiers.demande.edit_dossier_title')