{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *}
{$otherContactTypeIcon} {$other_name|escape} ({ts}duplicate{/ts}) | {ts}Mark All{/ts} =={$form.toggleSelect.html} ==> |
{$mainContactTypeIcon}{$main_name|escape} | Add/overwrite? | |||
---|---|---|---|---|---|---|
{$summaryRow.label} | {$summaryRow.other_contact_value} | {$summaryRow.main_contact_value} | ||||
{$row.title|escape} | {else} {if $row.main eq $row.other}||||||
{$row.title|escape} | {/if} {assign var=position value=$field|strrpos:'_'} {assign var=blockId value=$field|substr:$position+1} {assign var=blockName value=$field|substr:14:$position-14}{* @TODO check if this is ever an array or a fileName? *} {if $row.location_entity == "email" OR $row.location_entity == "address"} {else} {/if} {if !is_array($row.other)} {$row.other|escape} {elseif $row.other.fileName} {$row.other.fileName|escape} {else} {', '|implode:$row.other} {/if} | {if $form.$field}=={$form.$field.html|crmAddClass:"select-row"}==>{/if} | {* For location blocks *} {if $row.location_entity}{strip} {if $row.location_entity == "email" OR $row.location_entity == "address"} {else} {/if} {* @TODO check if this is ever an array or a fileName? *} {if !is_array($row.main)} {$row.main|escape} {elseif $row.main.fileName} {$row.main.fileName|escape} {else} {', '|implode:$row.main} {/if} {/strip} | {* Display location for fields with locations *} {if $blockName eq 'email' || $blockName eq 'phone' || $blockName eq 'address' || $blockName eq 'im' } {$form.location_blocks.$blockName.$blockId.locTypeId.html} {/if} {* Display other_type_id for websites, ims and phones *} {if $blockName eq 'website' || $blockName eq 'im' || $blockName eq 'phone' } {$form.location_blocks.$blockName.$blockId.typeTypeId.html} {/if} {* Display the overwrite/add/add new label *} {if $row.main && $row.main_is_primary == "1"}Primary{/if} | {* For non-location blocks *} {else}{if !is_array($row.main)} {$row.main|escape} {elseif $row.main.fileName} {$row.main.fileName|escape} {else} {', '|implode:$row.main} {/if} |
{if isset($row.main) || isset($row.other)}
{if $row.main == $row.other}
({ts}match{/ts}) {elseif $row.main} ({ts}overwrite{/ts}) {else} ({ts}add{/ts}) {/if} {/if} |
{/if}
{ts}Move related...{/ts} | {if $otherUfId}{$otherUfName} | =={$form.$paramName.html|crmAddClass:"select-row"}==>{else} | {/if} | {if $mainUfId}{$mainUfName}{/if} | ({ts}migrate{/ts}) | |
{ts}Move related...{/ts} | {$params.title} | =={$form.$paramName.html|crmAddClass:"select-row"}==> | {$params.title}{if $form.operation.$paramName.add.html} {$form.operation.$paramName.add.html}{/if} | ({ts}migrate{/ts}) |