From 66af573ca417c41c6aed27253cffcc6c33e75dee Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 31 Aug 2018 00:10:16 +0200 Subject: [PATCH] Add a warning in the attachements part of the form --- app/assets/stylesheets/new_design/dossier_edit.scss | 7 +++++++ app/views/shared/dossiers/_edit.html.haml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/app/assets/stylesheets/new_design/dossier_edit.scss b/app/assets/stylesheets/new_design/dossier_edit.scss index b37369943..3b631c66b 100644 --- a/app/assets/stylesheets/new_design/dossier_edit.scss +++ b/app/assets/stylesheets/new_design/dossier_edit.scss @@ -38,4 +38,11 @@ flex-shrink: 0; // Display the button label on a single line } } + + .warning { + margin-bottom: 20px; + background-color: #f9b91666; + padding: 20px; + border-radius: 4px; + } } diff --git a/app/views/shared/dossiers/_edit.html.haml b/app/views/shared/dossiers/_edit.html.haml index ba27df72a..09b93fc56 100644 --- a/app/views/shared/dossiers/_edit.html.haml +++ b/app/views/shared/dossiers/_edit.html.haml @@ -32,6 +32,11 @@ .card-title Pièces jointes + .warning + Pour éviter toute erreur, nous vous conseillons de limiter la taille de chaque pièce jointe à 20 Mo, et de les ajouter une par une, en enregistrant votre + = dossier.brouillon? ? "brouillon" : "dossier" + après chaque ajout. + - tpjs.each do |tpj| .pj-input %label{ for: "piece_justificative_#{tpj.id}" }