From 8c27ba3d63771f94dcc5ef65d59f8264b2ca2592 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 16 Aug 2022 08:37:10 +1200 Subject: [PATCH] Finish consolidating DataSource.tpl --- .../CRM/Custom/Import/Form/DataSource.tpl | 70 +------------------ templates/CRM/Import/Form/DataSource.tpl | 6 ++ 2 files changed, 7 insertions(+), 69 deletions(-) diff --git a/templates/CRM/Custom/Import/Form/DataSource.tpl b/templates/CRM/Custom/Import/Form/DataSource.tpl index 6581685d79..5395b37fcf 100644 --- a/templates/CRM/Custom/Import/Form/DataSource.tpl +++ b/templates/CRM/Custom/Import/Form/DataSource.tpl @@ -7,72 +7,4 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} - -{* Import Wizard - Step 1 (choose data source) *} -{* Import Wizard - Step 1 (choose data source) *} -
- - {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *} - {include file="CRM/common/WizardHeader.tpl"} - {if $errorMessage} -
- {$errorMessage} -
- {/if} -
- {ts 1=$importEntity 2= $importEntities}The %1 Import Wizard allows you to easily upload %2 from other applications into CiviCRM.{/ts} - {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match an existing contact in your CiviCRM database.{/ts} {help id='upload'} -
-
-
{include file="CRM/common/formButtons.tpl" location="top"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - {include file="CRM/Core/Date.tpl"} - - {if $savedMapping} - - - - - - - - - {/if} -
{$form.uploadFile.label}{$form.uploadFile.html}
- - {ts}File format must be comma-separated-values (CSV).{/ts} - -
 {ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}
 {$form.skipColumnHeader.html} {$form.skipColumnHeader.label}
- - {ts}Check this box if the first row of your file consists of field names (Example: "Contact ID", "Participant Role").{/ts} - -
{$form.multipleCustomData.label}{$form.multipleCustomData.html}
{$form.contactType.label}{$form.contactType.html}
{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}{$form.fieldSeparator.html}
{$form.savedMapping.label}{$form.savedMapping.html}
 {ts}Select Saved Mapping, or leave blank to create a new mapping.{/ts}
-
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
-
+{include file="CRM/Import/Form/DataSource.tpl"} diff --git a/templates/CRM/Import/Form/DataSource.tpl b/templates/CRM/Import/Form/DataSource.tpl index 28ce84c23c..c125ab8ec6 100644 --- a/templates/CRM/Import/Form/DataSource.tpl +++ b/templates/CRM/Import/Form/DataSource.tpl @@ -55,6 +55,12 @@ {$form.onDuplicate.label} {$form.onDuplicate.html} {help id="id-onDuplicate"} + {/if} + {if array_key_exists('multipleCustomData', $form)} + + {$form.multipleCustomData.label} + {$form.multipleCustomData.html} + {/if} {$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'} -- 2.25.1