+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-contact-merge-form-block">
-<div id="help">
-{ts}Click <strong>Merge</strong> to move data from the Duplicate Contact on the left into the Main Contact. In addition to the contact data (address, phone, email...), you may choose to move all or some of the related activity records (groups, contributions, memberships, etc.).{/ts} {help id="intro"}
-</div>
-
-<div class="crm-submit-buttons">
- {include file="CRM/common/formButtons.tpl" location="top"}
- {if $prev}<a href="{$prev}" class="crm-hover-button action-item"><span class="icon ui-icon-triangle-1-w"></span> {ts}Previous{/ts}</a>{/if}
- {if $next}<a href="{$next}" class="crm-hover-button action-item">{ts}Next{/ts} <span class="icon ui-icon-triangle-1-e"></span></a>{/if}
-</div>
-
-<div class="action-link">
- <a href="{$flip}" class="action-item crm-hover-button">
- <span class="icon ui-icon-shuffle"></span>
- {ts}Flip between original and duplicate contacts.{/ts}
- </a>
-</div>
-
-<div class="action-link">
- <a href="#" class="action-item crm-hover-button crm-notDuplicate" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{if $rgid}{crmURL p="civicrm/contact/dedupefind" q="reset=1&action=update&rgid=$rgid"}{/if}' );return false;">
- <span class="icon ui-icon-circle-close"></span>
- {ts}Mark this pair as not a duplicate.{/ts}
- </a>
-</div>
-
-<table class="row-highlight">
- <tr class="columnheader">
- <th> </th>
- <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name}</a> ({ts}duplicate{/ts})</th>
- <th>{ts}Mark All{/ts}<br />=={$form.toggleSelect.html} ==></th>
- <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name}</a></th>
- </tr>
- {foreach from=$rows item=row key=field}
- <tr class="{cycle values="odd-row,even-row"}">
- <td>{$row.title}</td>
- <td>
- {if !is_array($row.other)}
- {$row.other}
- {elseif $row.other.fileName}
- {$row.other.fileName}
- {else}
- {', '|implode:$row.other}
- {/if}
- </td>
- <td style='white-space: nowrap'>{if $form.$field}=={$form.$field.html|crmAddClass:"select-row"}==>{/if}</td>
- <td>
- {if $row.title|substr:0:5 == "Email" OR
- $row.title|substr:0:7 == "Address" OR
- $row.title|substr:0:2 == "IM" OR
- $row.title|substr:0:6 == "OpenID" OR
- $row.title|substr:0:5 == "Phone"}
-
- {assign var=position value=$field|strrpos:'_'}
- {assign var=blockId value=$field|substr:$position+1}
- {assign var=blockName value=$field|substr:14:$position-14}
-
- {$form.location.$blockName.$blockId.locTypeId.html}
- {if $blockName eq 'email' || $blockName eq 'phone' }
- <span id="main_{$blockName}_{$blockId}_overwrite">{if $row.main}(overwrite){$form.location.$blockName.$blockId.operation.html} <br />{else}(add){/if}</span>
- {else}
- <span id="main_{$blockName}_{$blockId}_overwrite">{if $row.main}(overwrite)<br />{else}(add){/if}</span>
- {/if}
-
+ <div id="help">
+ {ts}Click <strong>Merge</strong> to move data from the Duplicate Contact on the left into the Main Contact. In addition to the contact data (address, phone, email...), you may choose to move all or some of the related activity records (groups, contributions, memberships, etc.).{/ts} {help id="intro"}
+ </div>
+
+ <div class="crm-submit-buttons">
+ {include file="CRM/common/formButtons.tpl" location="top"}
+ {if $prev}<a href="{$prev}" class="crm-hover-button action-item"><span class="icon ui-icon-triangle-1-w"></span> {ts}Previous{/ts}</a>{/if}
+ {if $next}<a href="{$next}" class="crm-hover-button action-item">{ts}Next{/ts} <span class="icon ui-icon-triangle-1-e"></span></a>{/if}
+ </div>
+
+ <div class="action-link">
+ <a href="{$flip}" class="action-item crm-hover-button">
+ <span class="icon ui-icon-shuffle"></span>
+ {ts}Flip between original and duplicate contacts.{/ts}
+ </a>
+ </div>
+
+ <div class="action-link">
+ <a href="#" class="action-item crm-hover-button crm-notDuplicate" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{if $rgid}{crmURL p="civicrm/contact/dedupefind" q="reset=1&action=update&rgid=$rgid"}{/if}' );return false;">
+ <span class="icon ui-icon-circle-close"></span>
+ {ts}Mark this pair as not a duplicate.{/ts}
+ </a>
+ </div>
+
+ <table class="row-highlight">
+ <tr class="columnheader">
+ <th> </th>
+ <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name}</a> ({ts}duplicate{/ts})</th>
+ <th>{ts}Mark All{/ts}<br />=={$form.toggleSelect.html} ==></th>
+ <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name}</a></th>
+ </tr>
+ {foreach from=$rows item=row key=field}
+ <tr class="{cycle values="odd-row,even-row"}">
+ <td>{$row.title}</td>
+ <td>
+ {if !is_array($row.other)}
+ {$row.other}
+ {elseif $row.other.fileName}
+ {$row.other.fileName}
+ {else}
+ {', '|implode:$row.other}
{/if}
- {*NYSS 5546*}
- <span id="main_{$blockName}_{$blockId}">
- {if !is_array($row.main)}
- {$row.main}
- {elseif $row.main.fileName}
- {$row.main.fileName}
- {else}
- {', '|implode:$row.main}
- {/if}
- </span>
- </td>
- </tr>
- {/foreach}
+ </td>
+ <td style='white-space: nowrap'>{if $form.$field}=={$form.$field.html|crmAddClass:"select-row"}==>{/if}</td>
+ <td>
+ {if $row.title|substr:0:5 == "Email" OR
+ $row.title|substr:0:7 == "Address" OR
+ $row.title|substr:0:2 == "IM" OR
+ $row.title|substr:0:6 == "OpenID" OR
+ $row.title|substr:0:5 == "Phone"}
+
+ {assign var=position value=$field|strrpos:'_'}
+ {assign var=blockId value=$field|substr:$position+1}
+ {assign var=blockName value=$field|substr:14:$position-14}
+
+ {$form.location.$blockName.$blockId.locTypeId.html}
+ {if $blockName eq 'email' || $blockName eq 'phone' }
+ <span id="main_{$blockName}_{$blockId}_overwrite">{if $row.main}(overwrite){$form.location.$blockName.$blockId.operation.html} <br />{else}(add){/if}</span>
+ {else}
+ <span id="main_{$blockName}_{$blockId}_overwrite">{if $row.main}(overwrite)<br />{else}(add){/if}</span>
+ {/if}
- {foreach from=$rel_tables item=params key=paramName}
- {if $paramName eq 'move_rel_table_users'}
+ {/if}
+ {*NYSS 5546*}
+ <span id="main_{$blockName}_{$blockId}">
+ {if !is_array($row.main)}
+ {$row.main}
+ {elseif $row.main.fileName}
+ {$row.main.fileName}
+ {else}
+ {', '|implode:$row.main}
+ {/if}
+ </span>
+ </td>
+ </tr>
+ {/foreach}
+
+ {foreach from=$rel_tables item=params key=paramName}
+ {if $paramName eq 'move_rel_table_users'}
+ <tr class="{cycle values="even-row,odd-row"}">
+ <td><strong>{ts}Move related...{/ts}</strong></td><td>{if $otherUfId}<a target="_blank" href="{$params.other_url}">{$otherUfName}</a></td><td style='white-space: nowrap'>=={$form.$paramName.html|crmAddClass:"select-row"}==>{else}<td style='white-space: nowrap'></td>{/if}</td><td>{if $mainUfId}<a target="_blank" href="{$params.main_url}">{$mainUfName}</a>{/if}</td>
+ </tr>
+ {else}
<tr class="{cycle values="even-row,odd-row"}">
- <td><strong>{ts}Move related...{/ts}</strong></td><td>{if $otherUfId}<a target="_blank" href="{$params.other_url}">{$otherUfName}</a></td><td style='white-space: nowrap'>=={$form.$paramName.html|crmAddClass:"select-row"}==>{else}<td style='white-space: nowrap'></td>{/if}</td><td>{if $mainUfId}<a target="_blank" href="{$params.main_url}">{$mainUfName}</a>{/if}</td>
- </tr>
- {else}
- <tr class="{cycle values="even-row,odd-row"}">
- <td><strong>{ts}Move related...{/ts}</strong></td><td><a href="{$params.other_url}">{$params.title}</a></td><td style='white-space: nowrap'>=={$form.$paramName.html|crmAddClass:"select-row"}==></td><td><a href="{$params.main_url}">{$params.title}</a>{if $form.operation.$paramName.add.html} {$form.operation.$paramName.add.html}{/if}</td>
- </tr>
- {/if}
- {/foreach}
-</table>
-<div class='form-item'>
- <!--<p>{$form.moveBelongings.html} {$form.moveBelongings.label}</p>-->
- <!--<p>{$form.deleteOther.html} {$form.deleteOther.label}</p>-->
-</div>
-<div class="message status">
- <p><strong>{ts}WARNING: The duplicate contact record WILL BE DELETED after the merge is complete.{/ts}</strong></p>
- {if $user}
- <p><strong>{ts 1=$config->userFramework}There are %1 user accounts associated with both the original and duplicate contacts. Ensure that the Drupal User you want to retain is on the right - if necessary use the 'Flip between original and duplicate contacts.' option at top to swap the positions of the two records before doing the merge.
-The user record associated with the duplicate contact will not be deleted, but will be un-linked from the associated contact record (which will be deleted).
-You will need to manually delete that user (click on the link to open Drupal User account in new screen). You may need to give thought to how you handle any content or contents associated with that user.{/ts}</strong></p>
- {/if}
-</div>
-
-<div class="crm-submit-buttons">
- {include file="CRM/common/formButtons.tpl" location="bottom"}
+ <td><strong>{ts}Move related...{/ts}</strong></td><td><a href="{$params.other_url}">{$params.title}</a></td><td style='white-space: nowrap'>=={$form.$paramName.html|crmAddClass:"select-row"}==></td><td><a href="{$params.main_url}">{$params.title}</a>{if $form.operation.$paramName.add.html} {$form.operation.$paramName.add.html}{/if}</td>
+ </tr>
+ {/if}
+ {/foreach}
+ </table>
+ <div class='form-item'>
+ <!--<p>{$form.moveBelongings.html} {$form.moveBelongings.label}</p>-->
+ <!--<p>{$form.deleteOther.html} {$form.deleteOther.label}</p>-->
+ </div>
+ <div class="message status">
+ <p><strong>{ts}WARNING: The duplicate contact record WILL BE DELETED after the merge is complete.{/ts}</strong></p>
+ {if $user}
+ <p><strong>{ts 1=$config->userFramework}There are %1 user accounts associated with both the original and duplicate contacts. Ensure that the Drupal User you want to retain is on the right - if necessary use the 'Flip between original and duplicate contacts.' option at top to swap the positions of the two records before doing the merge.
+ The user record associated with the duplicate contact will not be deleted, but will be un-linked from the associated contact record (which will be deleted).
+ You will need to manually delete that user (click on the link to open Drupal User account in new screen). You may need to give thought to how you handle any content or contents associated with that user.{/ts}</strong></p>
+ {/if}
+ </div>
+
+ <div class="crm-submit-buttons">
+ {include file="CRM/common/formButtons.tpl" location="bottom"}
+ </div>
</div>
{literal}