From b9202871bf0a9340831094113d4d2e7e33602699 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 9 May 2022 23:00:52 +1200 Subject: [PATCH] [REF] [Import] Summary tpl - remove always-true ifs --- templates/CRM/Contact/Import/Form/Preview.tpl | 8 ++-- templates/CRM/Contact/Import/Form/Summary.tpl | 43 ++++++++----------- templates/CRM/Event/Import/Form/Preview.tpl | 6 +-- templates/CRM/Event/Import/Form/Summary.tpl | 14 +++--- 4 files changed, 29 insertions(+), 42 deletions(-) diff --git a/templates/CRM/Contact/Import/Form/Preview.tpl b/templates/CRM/Contact/Import/Form/Preview.tpl index 1dbbbb9830..503d561a5f 100644 --- a/templates/CRM/Contact/Import/Form/Preview.tpl +++ b/templates/CRM/Contact/Import/Form/Preview.tpl @@ -38,14 +38,12 @@ {if $invalidRowCount} - {ts}Rows with Errors{/ts} + {ts}Rows with Errors{/ts} {$invalidRowCount} {ts}Rows with invalid data in one or more fields (for example, invalid email address formatting). These rows will be skipped (not imported).{/ts} - {if $invalidRowCount} - - {/if} + - + {/if} diff --git a/templates/CRM/Contact/Import/Form/Summary.tpl b/templates/CRM/Contact/Import/Form/Summary.tpl index 39c022d0a0..e3ce9d67d7 100644 --- a/templates/CRM/Contact/Import/Form/Summary.tpl +++ b/templates/CRM/Contact/Import/Form/Summary.tpl @@ -52,51 +52,46 @@ {ts 1=$downloadAddressRecordsUrl}You can Download Street Address Records . You may then edit those contact records and update the street address accordingly.{/ts}

{/if} - -
{include file="CRM/common/formButtons.tpl" location="top"}
+ +
{include file="CRM/common/formButtons.tpl" location="top"}
{* Summary of Import Results (record counts) *} - +
- - + + - {if $invalidRowCount } - + {if $invalidRowCount} + - + {/if} - {if $unMatchCount } - + {if $unMatchCount} + - + {/if} {if $duplicateRowCount && $dupeError} - + {/if} - - - + + + + {if $groupAdditions} diff --git a/templates/CRM/Event/Import/Form/Preview.tpl b/templates/CRM/Event/Import/Form/Preview.tpl index e7266aac90..f64d3c9c5e 100644 --- a/templates/CRM/Event/Import/Form/Preview.tpl +++ b/templates/CRM/Event/Import/Form/Preview.tpl @@ -39,12 +39,10 @@ {if $invalidRowCount} - + {/if} diff --git a/templates/CRM/Event/Import/Form/Summary.tpl b/templates/CRM/Event/Import/Form/Summary.tpl index 74d19b75f9..77d932079a 100644 --- a/templates/CRM/Event/Import/Form/Summary.tpl +++ b/templates/CRM/Event/Import/Form/Summary.tpl @@ -49,24 +49,20 @@ - {if $invalidRowCount } - + {if $invalidRowCount} + {/if} {if $duplicateRowCount} - + {/if} -- 2.25.1
{ts}Total Rows{/ts}{$totalRowCount}{ts}Total number of rows in the imported data.{/ts}{$totalRowCount}{ts}Total number of rows in the imported data.{/ts}
{ts}Invalid Rows (skipped){/ts}
{ts}Invalid Rows (skipped){/ts} {$invalidRowCount} {ts}Rows with invalid data in one or more fields (for example, invalid email address formatting). These rows will be skipped (not imported).{/ts} - {if $invalidRowCount} - - {/if} +
{ts}Mismatched Rows (skipped){/ts}
{ts}Mismatched Rows (skipped){/ts} {$unMatchCount} {ts}Rows with mismatched contact IDs... (NOT updated).{/ts} - {if $unMatchCount} - < - {/if} +
{ts}Duplicate Rows{/ts}
{ts}Duplicate Rows{/ts} {$duplicateRowCount} {ts}Rows which are duplicates of existing CiviCRM contact records.{/ts} {$dupeActionString} - {if $duplicateRowCount} - - {/if} +
{ts}Total Contacts{/ts}{$validRowCount}{ts}Total number of contact records created or modified during the import.{/ts}
{ts}Total Contacts{/ts}{$validRowCount}{ts}Total number of contact records created or modified during the import.{/ts}
{ts}Rows with Errors{/ts}
{ts}Rows with Errors{/ts} {$invalidRowCount} {ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts} - {if $invalidRowCount} -

{ts}Download Errors{/ts}

- {/if} +

{ts}Download Errors{/ts}

{ts}Total rows (participant records) in uploaded file.{/ts}
{ts}Invalid Rows (skipped){/ts}
{ts}Invalid Rows (skipped){/ts} {$invalidRowCount} {ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts} - {if $invalidRowCount} -

{ts}Download Errors{/ts}

- {/if} +

{ts}Download Errors{/ts}

{ts}Duplicate Rows{/ts}
{ts}Duplicate Rows{/ts} {$duplicateRowCount} {ts}Rows which are duplicates of existing CiviCRM participant records.{/ts} {$dupeActionString} - {if $duplicateRowCount} -

{ts}Download Duplicates{/ts}

- {/if} +

{ts}Download Duplicates{/ts}