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"