Merge pull request #5027 from colemanw/CRM-15705
[civicrm-core.git] / templates / CRM / Contribute / Import / Form / Preview.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* Contribution Import Wizard - Step 3 (preview import results prior to actual data loading) *}
27 {* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
28 <div class="crm-block crm-form-block crm-contribution-import-preview-form-block" id="upload-file">
29 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
30 {include file="CRM/common/WizardHeader.tpl"}
31
32 <div id="help">
33 <p>
34 {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}
35 </p>
36
37 {if $invalidRowCount}
38 <p class="error">
39 {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}
40 </p>
41 {/if}
42
43 {if $conflictRowCount}
44 <p class="error">
45 {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}
46 </p>
47 {/if}
48
49
50 <p>{ts}Click 'Import Now' if you are ready to proceed.{/ts}</p>
51 </div>
52 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
53 {* Summary Preview (record counts) *}
54 <table id="preview-counts" class="report">
55 <tr><td class="label">{ts}Total Rows{/ts}</td>
56 <td class="data">{$totalRowCount}</td>
57 <td class="explanation">{ts}Total rows (contribution records) in uploaded file.{/ts}</td>
58 </tr>
59
60 {if $invalidRowCount}
61 <tr class="error"><td class="label">{ts}Rows with Errors{/ts}</td>
62 <td class="data">{$invalidRowCount}</td>
63 <td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
64 {if $invalidRowCount}
65 <p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
66 {/if}
67 </td>
68 </tr>
69 {/if}
70
71 {if $conflictRowCount}
72 <tr class="error"><td class="label">{ts}Conflicting Rows{/ts}</td>
73 <td class="data">{$conflictRowCount}</td>
74 <td class="explanation">{ts}Rows with conflicting transaction ids within this file. These rows will be skipped (not imported).{/ts}
75 {if $conflictRowCount}
76 <p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
77 {/if}
78 </td>
79 </tr>
80 {/if}
81
82 <tr><td class="label">{ts}Valid Rows{/ts}</td>
83 <td class="data">{$validRowCount}</td>
84 <td class="explanation">{ts}Total rows to be imported.{/ts}</td>
85 </tr>
86 </table>
87
88
89 {* Table for mapping preview *}
90 {include file="CRM/Contribute/Import/Form/MapTable.tpl"}
91 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
92 </div>