From 06f557c5872b2278af7508102504f196903e116d Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Tue, 17 Nov 2015 16:22:55 +0000 Subject: [PATCH] Fix for CRM-17585 and 'add new' usability improvements --- templates/CRM/Contact/Form/Merge.tpl | 135 +++++++++++++++------------ 1 file changed, 73 insertions(+), 62 deletions(-) diff --git a/templates/CRM/Contact/Form/Merge.tpl b/templates/CRM/Contact/Form/Merge.tpl index 6f682af69f..7c44662a20 100644 --- a/templates/CRM/Contact/Form/Merge.tpl +++ b/templates/CRM/Contact/Form/Merge.tpl @@ -118,6 +118,7 @@ + {* Display location for fields with locations *} {if $blockName eq 'email' || $blockName eq 'phone' || $blockName eq 'address' || $blockName eq 'im' } {$form.location.$blockName.$blockId.locTypeId.html}  {/if} @@ -126,66 +127,19 @@ {if $blockName eq 'website' || $blockName eq 'im' || $blockName eq 'phone' } {$form.type.$blockName.$blockId.typeTypeId.html}  {/if} - - {if $blockName eq 'address' || $blockName eq 'email' || $blockName eq 'phone' || $blockName eq 'website' || $blockName eq 'im' } - - {if $row.main} - (overwrite){$form.location.$blockName.$blockId.html} 
- {else} - (add) - {/if} -
- {/if} - - {literal} - - {/literal} - + + {* Display the overwrite/add/add new label *} + + {if $row.main} + (overwrite)  + {if $blockName eq 'email' || $blockName eq 'phone' } + {$form.location.$blockName.$blockId.operation.html}  + {/if} +
+ {else} + (add)  + {/if} +
{* For non-location blocks *} @@ -207,9 +161,9 @@ {if isset($row.main) || isset($row.other)} {if $row.main} - (overwrite)
+ (overwrite)
{else} - (add) + (add) {/if}
{/if} @@ -254,8 +208,65 @@ You will need to manually delete that user (click on the link to open Drupal Use {literal}