From 17c84504500380571a2537a92aa76b219c02b55b Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Fri, 10 Mar 2023 17:54:10 +0100 Subject: [PATCH] adjust badge alignement for users dossiers --- app/assets/stylesheets/dossier_views.scss | 16 ---------------- app/views/shared/dossiers/_header.html.haml | 6 +++--- app/views/users/dossiers/show/_header.html.haml | 7 +++---- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/app/assets/stylesheets/dossier_views.scss b/app/assets/stylesheets/dossier_views.scss index 95190b43c..ddfc50980 100644 --- a/app/assets/stylesheets/dossier_views.scss +++ b/app/assets/stylesheets/dossier_views.scss @@ -3,22 +3,6 @@ .dossier-container { .sub-header { - .label { - float: right; - margin-left: $default-spacer; - } - - .title-container { - margin-bottom: $default-spacer; - padding-left: 32px; - - .icon.folder { - float: left; - margin-left: -32px; - margin-top: 3px; - } - } - h1 { color: $black; font-size: 22px; diff --git a/app/views/shared/dossiers/_header.html.haml b/app/views/shared/dossiers/_header.html.haml index 95e985c6c..dcf36bd7f 100644 --- a/app/views/shared/dossiers/_header.html.haml +++ b/app/views/shared/dossiers/_header.html.haml @@ -1,7 +1,7 @@ -= status_badge(dossier.state) .title-container - %span.icon.folder - %h1= procedure_libelle(dossier.procedure) + %h1 + = procedure_libelle(dossier.procedure) + = status_badge(dossier.state, 'super') %h2 = t('views.users.dossiers.show.header.dossier_number', dossier_id: dossier.id) = t('views.users.dossiers.show.header.created_date', date_du_dossier: I18n.l(dossier.created_at)) diff --git a/app/views/users/dossiers/show/_header.html.haml b/app/views/users/dossiers/show/_header.html.haml index 14179155d..55e5877ef 100644 --- a/app/views/users/dossiers/show/_header.html.haml +++ b/app/views/users/dossiers/show/_header.html.haml @@ -1,10 +1,9 @@ .sub-header .container - = status_badge(dossier.state) - .title-container - %span.icon.folder - %h1= dossier.procedure.libelle + %h1 + = dossier.procedure.libelle + = status_badge(dossier.state, 'super') %h2 = t('views.users.dossiers.show.header.dossier_number', dossier_id: dossier.id) - if dossier.depose_at.present?