From 8f76b48fe59a5e2f2217cfd0fc9d110b14f836d9 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Mon, 13 May 2019 18:30:07 +0200 Subject: [PATCH] suite --- app/views/public/contacts/_form.html.haml | 5 +++-- app/views/public/contacts/new.html.haml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/public/contacts/_form.html.haml b/app/views/public/contacts/_form.html.haml index 4d610e2..fb2b78b 100755 --- a/app/views/public/contacts/_form.html.haml +++ b/app/views/public/contacts/_form.html.haml @@ -45,8 +45,9 @@ - %h3 - Mes coordonnées : + -if @contact_page or @contact.contact_products.size > 0 + %h3 + Mes coordonnées : %table{:style => "border-collapse:collapse;width:100%;"} %tr diff --git a/app/views/public/contacts/new.html.haml b/app/views/public/contacts/new.html.haml index 381f147..45b7175 100644 --- a/app/views/public/contacts/new.html.haml +++ b/app/views/public/contacts/new.html.haml @@ -16,7 +16,7 @@ =render :partial => "public/products/new_top" .render_block.contact_page - + -@contact_page = true .contact_form.contact_militer#form=render :partial => "form"