From ff2119386936d603d226631ee081e06855f9a1cb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 10 Aug 2022 12:35:43 +1200 Subject: [PATCH] Remove now-unused summary forms --- CRM/Activity/Import/Form/Summary.php | 23 ---- CRM/Contact/Import/Form/DataSource.php | 1 - CRM/Contribute/Import/Form/Summary.php | 23 ---- CRM/Custom/Import/Form/Summary.php | 8 -- CRM/Event/Import/Form/Summary.php | 23 ---- CRM/Import/StateMachine.php | 1 - CRM/Member/Import/Form/Summary.php | 26 ---- .../CRM/Activity/Import/Form/Summary.tpl | 57 --------- .../CRM/Contribute/Import/Form/Summary.tpl | 112 ------------------ templates/CRM/Custom/Import/Form/Summary.tpl | 10 -- templates/CRM/Event/Import/Form/Summary.tpl | 80 ------------- templates/CRM/Member/Import/Form/Summary.tpl | 12 -- 12 files changed, 376 deletions(-) delete mode 100644 CRM/Activity/Import/Form/Summary.php delete mode 100644 CRM/Contribute/Import/Form/Summary.php delete mode 100644 CRM/Custom/Import/Form/Summary.php delete mode 100644 CRM/Event/Import/Form/Summary.php delete mode 100644 CRM/Member/Import/Form/Summary.php delete mode 100644 templates/CRM/Activity/Import/Form/Summary.tpl delete mode 100644 templates/CRM/Contribute/Import/Form/Summary.tpl delete mode 100644 templates/CRM/Custom/Import/Form/Summary.tpl delete mode 100644 templates/CRM/Event/Import/Form/Summary.tpl delete mode 100644 templates/CRM/Member/Import/Form/Summary.tpl diff --git a/CRM/Activity/Import/Form/Summary.php b/CRM/Activity/Import/Form/Summary.php deleted file mode 100644 index 0aab950b95..0000000000 --- a/CRM/Activity/Import/Form/Summary.php +++ /dev/null @@ -1,23 +0,0 @@ -get() // which was the old way of saving values submitted on this form such that // the other forms could access them. Now they should use // `getSubmittedValue` or simply not get them if the only diff --git a/CRM/Contribute/Import/Form/Summary.php b/CRM/Contribute/Import/Form/Summary.php deleted file mode 100644 index 3d01d46709..0000000000 --- a/CRM/Contribute/Import/Form/Summary.php +++ /dev/null @@ -1,23 +0,0 @@ - NULL, $classType . '_Form_MapField' => NULL, $classType . '_Form_Preview' => NULL, - $classType . '_Form_Summary' => NULL, ]; $this->addSequentialPages($this->_pages, $action); diff --git a/CRM/Member/Import/Form/Summary.php b/CRM/Member/Import/Form/Summary.php deleted file mode 100644 index de46749c5e..0000000000 --- a/CRM/Member/Import/Form/Summary.php +++ /dev/null @@ -1,26 +0,0 @@ - - - {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *} - {include file="CRM/common/WizardHeader.tpl"} - -
-

- {ts}Import has completed successfully. The information below summarizes the results.{/ts} -

- - {if $invalidRowCount } -

- {ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record have not been imported.{/ts} -

-

- {ts 1=$downloadErrorRecordsUrl}You can Download Errors. You may then correct them, and import the new file with the corrected data.{/ts} -

- {/if} -
-
{include file="CRM/common/formButtons.tpl" location="top"}
- {* Summary of Import Results (record counts) *} - - - - - - - {if $invalidRowCount } - - - - - {/if} - - - - - -
{ts}Total Rows{/ts}{$totalRowCount}{ts}Total rows (activity records) in uploaded file.{/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}Records Imported{/ts}{$validRowCount}{ts}Rows imported successfully.{/ts}
- -
{include file="CRM/common/formButtons.tpl" location="bottom"}
- diff --git a/templates/CRM/Contribute/Import/Form/Summary.tpl b/templates/CRM/Contribute/Import/Form/Summary.tpl deleted file mode 100644 index 8e05fcbbb0..0000000000 --- a/templates/CRM/Contribute/Import/Form/Summary.tpl +++ /dev/null @@ -1,112 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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 | - +--------------------------------------------------------------------+ -*} -{* Contribution Import Wizard - Step 4 (summary of import results AFTER actual data loading) *} -{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *} -
- {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *} - {include file="CRM/common/WizardHeader.tpl"} - -
-

- {ts}Import has completed successfully.{/ts} {ts}The information below summarizes the results.{/ts} -

- - {if $invalidRowCount } -

- {ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record has not been imported.{/ts} -

-

- {ts 1=$downloadErrorRecordsUrl}You can Download Errors. You may then correct them, and import the new file with the corrected data.{/ts} -

- {/if} - - {if $duplicateRowCount} -

- {ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM contribution records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM contribution record.{/ts} {$dupeActionString} -

-

- {ts 1=$downloadDuplicateRecordsUrl}You can Download Duplicates. You may then review these records to determine if they are actually duplicates, and correct the transaction IDs for those that are not.{/ts} -

- {/if} -
-
{include file="CRM/common/formButtons.tpl" location="top"}
- {* Summary of Import Results (record counts) *} - - - - - - - {if $invalidRowCount } - - - - - {/if} - - {if $validSoftCreditRowCount } - - - - - {/if} - - {if $invalidSoftCreditRowCount } - - - - - {/if} - - {if $validPledgePaymentRowCount } - - - - - {/if} - - {if $invalidPledgePaymentRowCount } - - - - - {/if} - - {if $duplicateRowCount} - - - - - {/if} - - - - - - -
{ts}Total Rows{/ts}{$totalRowCount}{ts}Total rows (contribution records) in uploaded file.{/ts}
{ts}Invalid Rows (skipped){/ts}{$invalidRowCount}{ts}Rows with invalid data in one or more fields. These rows have been skipped (not imported).{/ts} - {if $invalidRowCount} -

{ts}Download Errors{/ts}

- {/if} -
{ts}Soft Credits{/ts}{$validSoftCreditRowCount}{ts}Rows where a soft credit was successfully assigned to a contact.{/ts}
{ts}Unmatched Soft Credit Rows (skipped){/ts}{$invalidSoftCreditRowCount}{ts}Rows with a requested soft credit assignment where no matching contact was found (based on the supplied soft credit contact data). These contribution rows have been skipped (not imported).{/ts} - {if $invalidSoftCreditRowCount} -

{ts}Download Errors{/ts}

- {/if} -
{ts}Pledge Payments Applied{/ts}{$validPledgePaymentRowCount}{ts}Rows with a pledge payment successfully applied.{/ts}
{ts}Invalid Pledge Payment Rows (skipped){/ts}{$invalidPledgePaymentRowCount}{ts}Rows marked as pledge payments where the contributor and / or contribution amount could not be matched to a pending pledge payment. These contribution rows have been skipped (not imported).{/ts} - {if $invalidPledgePaymentRowCount} -

{ts}Download Errors{/ts}

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

{ts}Download Duplicates{/ts}

- {/if} -
{ts}Records Imported{/ts}{$validRowCount}{ts}Total number of rows imported successfully.{/ts}
-
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
diff --git a/templates/CRM/Custom/Import/Form/Summary.tpl b/templates/CRM/Custom/Import/Form/Summary.tpl deleted file mode 100644 index 7481dabf61..0000000000 --- a/templates/CRM/Custom/Import/Form/Summary.tpl +++ /dev/null @@ -1,10 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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 | - +--------------------------------------------------------------------+ -*} -{include file="CRM/Contact/Import/Form/Summary.tpl"} diff --git a/templates/CRM/Event/Import/Form/Summary.tpl b/templates/CRM/Event/Import/Form/Summary.tpl deleted file mode 100644 index 77d932079a..0000000000 --- a/templates/CRM/Event/Import/Form/Summary.tpl +++ /dev/null @@ -1,80 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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 | - +--------------------------------------------------------------------+ -*} -{* Event Import Wizard - Step 4 (summary of import results AFTER actual data loading) *} -{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *} - -
- - {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *} - {include file="CRM/common/WizardHeader.tpl"} - -
-

- {ts}Import has completed successfully.{/ts} {ts}The information below summarizes the results.{/ts} -

- - {if $invalidRowCount } -

- {ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record has not been imported.{/ts} -

-

- {ts 1=$downloadErrorRecordsUrl}You can Download Errors. You may then correct them, and import the new file with the corrected data.{/ts} -

- {/if} - - {if $duplicateRowCount} -

- {ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM participant records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM participant record.{/ts} {$dupeActionString} -

-

- {ts 1=$downloadDuplicateRecordsUrl}You can Download Duplicates. You may then review these records to determine if they are actually duplicates, and correct the participant IDs for those that are not.{/ts} -

- {/if} -
- -
- {include file="CRM/common/formButtons.tpl" location="top"} -
- {* Summary of Import Results (record counts) *} - - - - - - - {if $invalidRowCount} - - - - - {/if} - - {if $duplicateRowCount} - - - - - {/if} - - - - - - -
{ts}Total Rows{/ts}{$totalRowCount}{ts}Total rows (participant records) in uploaded file.{/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} -

{ts}Download Errors{/ts}

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

{ts}Download Duplicates{/ts}

-
{ts}Records Imported{/ts}{$validRowCount}{ts}Rows imported successfully.{/ts}
- -
- {include file="CRM/common/formButtons.tpl" location="bottom"} -
-
diff --git a/templates/CRM/Member/Import/Form/Summary.tpl b/templates/CRM/Member/Import/Form/Summary.tpl deleted file mode 100644 index 8bdd72de1d..0000000000 --- a/templates/CRM/Member/Import/Form/Summary.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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 | - +--------------------------------------------------------------------+ -*} -{* Membership Import Wizard - no longer used - needs to be removed form the -{* controller & this can be deleted *} -{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *} -- 2.25.1