(NFC) (dev/core#878) Simplify copyright header (templates/*)
[civicrm-core.git] / templates / CRM / Event / 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{* Participant Import Wizard - Step 3 (preview import results prior to actual data loading) *}
11{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
31037a42 12
6a488035
TO
13<div class="crm-block crm-form-block crm-event-import-preview-form-block">
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"}
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">
f8aee301 30 {ts 1=$conflictRowCount 2=$downloadConflictRecordsUrl}CiviCRM has detected %1 records with conflicting participant 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}
6a488035
TO
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>
37
38<div class="crm-submit-buttons">
39 {include file="CRM/common/formButtons.tpl" location="top"}
40</div>
41 {* Summary Preview (record counts) *}
42 <table id="preview-counts" class="report">
712f3e31 43 <tr><td class="label crm-grid-cell">{ts}Total Rows{/ts}</td>
6a488035
TO
44 <td class="data">{$totalRowCount}</td>
45 <td class="explanation">{ts}Total rows (participant records) in uploaded file.{/ts}</td>
46 </tr>
31037a42 47
6a488035 48 {if $invalidRowCount}
712f3e31 49 <tr class="error"><td class="label crm-grid-cell">{ts}Rows with Errors{/ts}</td>
6a488035
TO
50 <td class="data">{$invalidRowCount}</td>
51 <td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
52 {if $invalidRowCount}
53 <p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
54 {/if}
55 </td>
56 </tr>
57 {/if}
31037a42 58
6a488035 59 {if $conflictRowCount}
712f3e31 60 <tr class="error"><td class="label crm-grid-cell">{ts}Conflicting Rows{/ts}</td>
6a488035 61 <td class="data">{$conflictRowCount}</td>
f8aee301 62 <td class="explanation">{ts}Rows with conflicting participant IDs within this file. These rows will be skipped (not imported).{/ts}
6a488035
TO
63 {if $conflictRowCount}
64 <p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
65 {/if}
66 </td>
67 </tr>
68 {/if}
69
712f3e31 70 <tr><td class="label crm-grid-cell">{ts}Valid Rows{/ts}</td>
6a488035
TO
71 <td class="data">{$validRowCount}</td>
72 <td class="explanation">{ts}Total rows to be imported.{/ts}</td>
73 </tr>
74 </table>
31037a42 75
6a488035
TO
76
77 {* Table for mapping preview *}
78 {include file="CRM/Event/Import/Form/MapTable.tpl}
31037a42
EM
79
80
6a488035
TO
81 <div class="crm-submit-buttons">
82 {include file="CRM/common/formButtons.tpl" location="bottom"}
83 </div>
232624b1 84</div>