From e88a3f8dbf35ecd8d09d8302e453b7a560988684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Fri, 28 Dec 2018 18:23:53 +0100 Subject: [PATCH] =?UTF-8?q?Add=20a=20message=20to=20the=20d=C3=A9marches?= =?UTF-8?q?=20library=20page=20if=20the=20admin=20has=200=20demarches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admin/procedures/new_from_existing.html.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/admin/procedures/new_from_existing.html.haml b/app/views/admin/procedures/new_from_existing.html.haml index 16f9ec609..2eb000c3a 100644 --- a/app/views/admin/procedures/new_from_existing.html.haml +++ b/app/views/admin/procedures/new_from_existing.html.haml @@ -1,3 +1,7 @@ +- if current_administrateur.procedures.brouillons.count == 0 + %h4{ style: 'padding: 20px; margin: 20px !important;' } + Bienvenue, vous allez pouvoir créer une première démarche de test. Celle-ci sera visible uniquement par vous et ne sera publiée nulle part, alors pas de crainte à avoir. + .row{ style: 'padding: 20px; margin: 20px !important;' } %a#from-scratch{ href: new_admin_procedure_path, class: 'btn-lg btn-primary' } Créer une nouvelle démarche de zéro