From 4e879d4f7457ead26e500b971d77ca9138d4fa6a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 22 Apr 2022 09:01:26 +1200 Subject: [PATCH] Whitespace cleanup --- .../CRM/Contact/Import/Form/MapTable.tpl | 181 +++++++----------- 1 file changed, 74 insertions(+), 107 deletions(-) diff --git a/templates/CRM/Contact/Import/Form/MapTable.tpl b/templates/CRM/Contact/Import/Form/MapTable.tpl index 79e478c6db8a..1b651d7ac574 100644 --- a/templates/CRM/Contact/Import/Form/MapTable.tpl +++ b/templates/CRM/Contact/Import/Form/MapTable.tpl @@ -10,11 +10,11 @@
{* Import Wizard - Data Mapping table used by MapFields.tpl and Preview.tpl *} -
+
{strip} {if $savedMappingName} - + {/if} {* Header row - has column for column names if they have been supplied *} @@ -29,127 +29,94 @@ - {*Loop on columns parsed from the import data rows*} - {foreach from=$mapper key=i item=mapperField} - - - - {if array_key_exists($i, $columnNames)} - - {/if} - {foreach from=$dataValues item=row key=index} - - {/foreach} - - {* Display mapper - - + {*Loop on columns parsed from the import data rows*} + {foreach from=$mapper key=i item=mapperField} + + {if array_key_exists($i, $columnNames)} + + {/if} + {foreach from=$dataValues item=row key=index} + {/foreach} -
{ts 1=$savedMappingName}Saved Field Mapping: %1{/ts}
{ts 1=$savedMappingName}Saved Field Mapping: %1{/ts}
{ts}Matching CiviCRM Field{/ts}
{$columnNames[$i]}{$row[$i]|escape} - {if $wizard.currentStepName == 'Preview'} - {if $relatedContactDetails && $relatedContactDetails[$i] != ''} - {$mapper[$i]} - {$relatedContactDetails[$i]} - - {if $relatedContactLocType && $relatedContactLocType[$i] != ''} - - {$relatedContactLocType[$i]} - {/if} - - {if $relatedContactPhoneType && $relatedContactPhoneType[$i] != ''} - - {$relatedContactPhoneType[$i]} - {/if} - - {* append IM Service Provider type for related contact *} - {if $relatedContactImProvider && $relatedContactImProvider[$i] != ''} - - {$relatedContactImProvider[$i]} - {/if} - - {* append website type *} - {if $relatedContactWebsiteType && $relatedContactWebsiteType[$i] != ''} - - {$relatedContactWebsiteType[$i]} - {/if} - - {else} - - {if $locations[$i]} - {$locations[$i]} - - {/if} - - {if $phones[$i]} - {$phones[$i]} - - {/if} - - {* append IM Service provider type for contact *} - {if $ims[$i]} - {$ims[$i]} - - {/if} - - {* append website type *} - {if $websites[$i]} - {$websites[$i]} - - {/if} - - {*else*} - {$mapper[$i]} - {*/if*} - {/if} - {else} - {$mapperField.html|smarty:nodefaults} - {/if} -
{$columnNames[$i]}{$row[$i]|escape}
+ {* Display mapper