From 14b7d607a5075b7c725aefc349ce31d3e8cc08b4 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Wed, 30 Jan 2019 22:36:49 +0100 Subject: [PATCH] suite --- .../admin/p_documents/_general.html.haml | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/app/views/admin/p_documents/_general.html.haml b/app/views/admin/p_documents/_general.html.haml index 1d4b8b6..3c0ac71 100644 --- a/app/views/admin/p_documents/_general.html.haml +++ b/app/views/admin/p_documents/_general.html.haml @@ -12,7 +12,7 @@ %div{:style => "position:relative;width:6cm;margin-right:0.2cm;float:right;"} - %div{:style => "border:1px solid black;padding:4px 8px;min-height:80px;"} + %div{:style => "border:0px solid black;padding:4px 8px;min-height:80px;"} %h3{:style => "position:absolute;top:-30px;"} Adresse de facturation @@ -34,16 +34,17 @@ %br =@p_document.particular_bill.country - .p_contacts - -@element.particular_bill.p_contacts.each do |p_contact| - .p_contact - =p_contact.name if p_contact.name? - =p_contact.tel if p_contact.tel? - =link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email? + -if false + .p_contacts + -@element.particular_bill.p_contacts.each do |p_contact| + .p_contact + =p_contact.name if p_contact.name? + =p_contact.tel if p_contact.tel? + =link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email? %div{:style => "position:relative;width:6cm;margin-right:0.5cm;float:right;"} - %div{:style => "border:1px solid black;padding:4px 8px;min-height:80px;"} + %div{:style => "border:0px solid black;padding:4px 8px;min-height:80px;"} %h3{:style => "position:absolute;top:-30px;"} Adresse de livraison @@ -65,12 +66,13 @@ %br =@p_document.particular_send.country - .p_contacts - -@element.particular_send.p_contacts.each do |p_contact| - .p_contact - =p_contact.name if p_contact.name? - =p_contact.tel if p_contact.tel? - =link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email? + -if false + .p_contacts + -@element.particular_send.p_contacts.each do |p_contact| + .p_contact + =p_contact.name if p_contact.name? + =p_contact.tel if p_contact.tel? + =link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email? %p{:style => "clear:both;height:0.5cm;"}