From 86dd5d2effaea9114a40b7144e27d02583ca1ec8 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 10 Nov 2016 16:59:57 +1300 Subject: [PATCH] (towards CRM-19492) Improve whitespace layout --- templates/CRM/Contact/Form/Merge.tpl | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contact/Form/Merge.tpl b/templates/CRM/Contact/Form/Merge.tpl index 4541877abf..af9082eab8 100644 --- a/templates/CRM/Contact/Form/Merge.tpl +++ b/templates/CRM/Contact/Form/Merge.tpl @@ -130,9 +130,24 @@ $row.title|substr:0:5 == "Phone"} - {* @TODO check if this is ever an array or a fileName? *} + {* This is on one long line for address formatting *} - {if $row.title|substr:0:7 == "Address"}{else}{/if}{if !is_array($row.main)}{$row.main}{elseif $row.main.fileName}{$row.main.fileName}{else}{', '|implode:$row.main}{/if} + {if $row.title|substr:0:7 == "Address"} + + {else} + + {/if} + + {* @TODO check if this is ever an array or a fileName? *} + {if !is_array($row.main)} + {$row.main} + {elseif $row.main.fileName} + {$row.main.fileName} + {else} + {', '|implode:$row.main} + {/if} + + @@ -239,7 +254,7 @@ /** * Triggered when a 'location' or 'type' destination is changed, and when * the operation or 'set primary' checkboxes are changed. - * + * * Check to see if the 'main' contact record has a corresponding location * block when the destination of a field is changed. Allow existing location * fields to be overwritten with data from the 'other' contact. -- 2.25.1