Merge pull request #22981 from braders/remove-assert
[civicrm-core.git] / templates / CRM / Member / Import / Form / Preview.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10<div class="crm-block crm-form-block crm-member-import-preview-form-block">
11{* Membership Import Wizard - Step 3 (preview import results prior to actual data loading) *}
12{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
13
14 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
15 {include file="CRM/common/WizardHeader.tpl"}
31037a42 16
f6eedce7 17 <div class="help">
6a488035 18 <p>
31037a42 19 {ts}The information below previews the results of importing your data in CiviCRM. Review the totals to ensure that they represent your expected results.{/ts}
6a488035 20 </p>
31037a42 21
6a488035
TO
22 {if $invalidRowCount}
23 <p class="error">
24 {ts 1=$invalidRowCount 2=$downloadErrorRecordsUrl}CiviCRM has detected invalid data or formatting errors in %1 records. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Errors</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
25 </p>
26 {/if}
27
28 {if $conflictRowCount}
29 <p class="error">
30 {ts 1=$conflictRowCount 2=$downloadConflictRecordsUrl}CiviCRM has detected %1 records with conflicting transaction ids within this data file. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Conflicts</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
31 </p>
32 {/if}
31037a42 33
6a488035
TO
34
35 <p>{ts}Click 'Import Now' if you are ready to proceed.{/ts}</p>
36 </div>
31037a42 37 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
8cebffb2 38 {include file="CRM/common/importProgress.tpl"}
6a488035
TO
39 {* Summary Preview (record counts) *}
40 <table id="preview-counts" class="report">
d8eb7600 41 <tr><td class="label crm-grid-cell">{ts}Total Rows{/ts}</td>
6a488035
TO
42 <td class="data">{$totalRowCount}</td>
43 <td class="explanation">{ts}Total rows (membership records) in uploaded file.{/ts}</td>
44 </tr>
31037a42 45
6a488035 46 {if $invalidRowCount}
d8eb7600 47 <tr class="error"><td class="label crm-grid-cell">{ts}Rows with Errors{/ts}</td>
6a488035
TO
48 <td class="data">{$invalidRowCount}</td>
49 <td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
50 {if $invalidRowCount}
13a3d214 51 <div class="action-link"><a href="{$downloadErrorRecordsUrl}"><i class="crm-i fa-download" aria-hidden="true"></i> {ts}Download Errors{/ts}</a></div>
6a488035
TO
52 {/if}
53 </td>
54 </tr>
55 {/if}
31037a42 56
6a488035 57 {if $conflictRowCount}
d8eb7600 58 <tr class="error"><td class="label crm-grid-cell">{ts}Conflicting Rows{/ts}</td>
6a488035
TO
59 <td class="data">{$conflictRowCount}</td>
60 <td class="explanation">{ts}Rows with conflicting transaction ids within this file. These rows will be skipped (not imported).{/ts}
61 {if $conflictRowCount}
13a3d214 62 <div class="action-link"><a href="{$downloadConflictRecordsUrl}"><i class="crm-i fa-download" aria-hidden="true"></i> {ts}Download Conflicts{/ts}</a></div>
6a488035
TO
63 {/if}
64 </td>
65 </tr>
66 {/if}
67
d8eb7600 68 <tr><td class="label crm-grid-cell">{ts}Valid Rows{/ts}</td>
6a488035
TO
69 <td class="data">{$validRowCount}</td>
70 <td class="explanation">{ts}Total rows to be imported.{/ts}</td>
71 </tr>
72 </table>
31037a42 73
6a488035
TO
74
75 {* Table for mapping preview *}
76 {include file="CRM/Member/Import/Form/MapTable.tpl}
31037a42
EM
77
78
6a488035
TO
79 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
80 </div>