more whitespace cleanup
[civicrm-core.git] / templates / CRM / Contact / Import / Form / Summary.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
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 <div class="crm-block crm-form-block crm-import-summary-form-block">
27
28 {* Import Wizard - Step 4 (summary of import results AFTER actual data loading) *}
29 {* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
30
31 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
32 {include file="CRM/common/WizardHeader.tpl"}
33 <div id="help">
34 <p>
35 {ts}<strong>Import has completed successfully.</strong> The information below summarizes the results.{/ts}
36 </p>
37
38 {if $unMatchCount }
39 <p class="error">
40 {ts count=$unMatchCount plural='CiviCRM has detected mismatched contact IDs. These records have not been updated.'}CiviCRM has detected mismatched contact ID. This record has not been updated.{/ts}
41 </p>
42 <p class="error">
43 {ts 1=$downloadMismatchRecordsUrl}You can <a href='%1'>Download Mismatched Contacts</a>. You may then correct them, and import the new file with the corrected data.{/ts}
44 </p>
45 {/if}
46
47 {if $invalidRowCount }
48 <p class="error">
49 {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}
50 </p>
51 <p class="error">
52 {ts 1=$downloadErrorRecordsUrl}You can <a href='%1'>Download Errors</a>. You may then correct them, and import the new file with the corrected data.{/ts}
53 </p>
54 {/if}
55
56 {if $conflictRowCount}
57 <p class="error">
58 {ts count=$conflictRowCount plural='CiviCRM has detected %count records with conflicting email addresses within this data file or relative to existing contact records. These records have not been imported.'}CiviCRM has detected one record with conflicting email addresses within this data file or relative to existing contact records. This record has not been imported.{/ts} {ts}CiviCRM does not allow multiple contact records to have the same primary email address.{/ts}
59 </p>
60 <p class="error">
61 {ts 1=$downloadConflictRecordsUrl}You can <a href='%1'>Download Conflicts</a>. You may then review these records to determine if they are actually conflicts, and correct the email addresses for those that are not.{/ts}
62 </p>
63 {/if}
64
65 {if $duplicateRowCount}
66 <p {if $dupeError}class="error"{/if}>
67 {ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM contact records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM contact record.{/ts} {$dupeActionString}
68 </p>
69 <p {if $dupeError}class="error"{/if}>
70 {ts 1=$downloadDuplicateRecordsUrl}You can <a href='%1'>Download Duplicates</a>. You may then review these records to determine if they are actually duplicates, and correct the email address for those that are not.{/ts}
71 </p>
72 {/if}
73
74 {if $unparsedAddressCount}
75 <p class="error">{$unparsedStreetAddressString}</p>
76 <p class="error">
77 {ts 1=$downloadAddressRecordsUrl}You can <a href='%1'>Download Street Address Records </a>. You may then edit those contact records and update the street address accordingly.{/ts}
78 </p>
79 {/if}
80 </div>
81 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
82 {* Summary of Import Results (record counts) *}
83 <table id="summary-counts" class="report">
84 <tr><td class="label">{ts}Total Rows{/ts}</td>
85 <td class="data">{$totalRowCount}</td>
86 <td class="explanation">{ts}Total number of rows in the imported data.{/ts}</td>
87 </tr>
88
89 {if $invalidRowCount }
90 <tr class="error"><td class="label">{ts}Invalid Rows (skipped){/ts}</td>
91 <td class="data">{$invalidRowCount}</td>
92 <td class="explanation">{ts}Rows with invalid data in one or more fields (for example, invalid email address formatting). These rows will be skipped (not imported).{/ts}
93 {if $invalidRowCount}
94 <div class="action-link"><a href="{$downloadErrorRecordsUrl}">&raquo; {ts}Download Errors{/ts}</a></div>
95 {/if}
96 </td>
97 </tr>
98 {/if}
99
100 {if $unMatchCount }
101 <tr class="error"><td class="label">{ts}Mismatched Rows (skipped){/ts}</td>
102 <td class="data">{$unMatchCount}</td>
103 <td class="explanation">{ts}Rows with mismatched contact IDs... (NOT updated).{/ts}
104 {if $unMatchCount}
105 <<div class="action-link"><a href="{$downloadMismatchRecordsUrl}">&raquo; {ts}Download Mismatched Contacts{/ts}</a></div>
106 {/if}
107 </td>
108 </tr>
109 {/if}
110
111 {if $conflictRowCount}
112 <tr class="error"><td class="label">{ts}Conflicting Rows (skipped){/ts}</td>
113 <td class="data">{$conflictRowCount}</td>
114 <td class="explanation">{ts}Rows with conflicting email addresses (NOT imported).{/ts}
115 {if $conflictRowCount}
116 <div class="action-link"><a href="{$downloadConflictRecordsUrl}">&raquo; {ts}Download Conflicts{/ts}</a></div>
117 {/if}
118 </td>
119 </tr>
120 {/if}
121
122 {if $duplicateRowCount && $dupeError}
123 <tr class="error"><td class="label">{ts}Duplicate Rows{/ts}</td>
124 <td class="data">{$duplicateRowCount}</td>
125 <td class="explanation">{ts}Rows which are duplicates of existing CiviCRM contact records.{/ts} {$dupeActionString}
126 {if $duplicateRowCount}
127 <div class="action-link"><a href="{$downloadDuplicateRecordsUrl}">&raquo; {ts}Download Duplicates{/ts}</a></div>
128 {/if}
129 </td>
130 </tr>
131 {/if}
132
133 <tr><td class="label">{ts}Total Contacts{/ts}</td>
134 <td class="data">{$validRowCount}</td>
135 <td class="explanation">{ts}Total number of contact records created or modified during the import.{/ts}</td>
136 </tr>
137
138 {if $groupAdditions}
139 <tr><td class="label">{ts}Import to Groups{/ts}</td>
140 <td colspan="2" class="explanation">
141 {foreach from="$groupAdditions" item="group"}
142 <label><a href="{$group.url}">{$group.name}</a></label>:
143 {if $group.new}
144 {ts count=$group.added plural='%count contacts added to this new group.'}One contact added to this new group.{/ts}
145 {else}
146 {ts count=$group.added plural='%count contacts added to this existing group.'}One contact added to this existing group.{/ts}
147 {/if}
148 {if $group.notAdded}{ts count=$group.notAdded plural='%count contacts NOT added (already in this group).'}One contact NOT added (already in this group).{/ts}{/if}<br />
149 {/foreach}
150 </td>
151 </tr>
152 {/if}
153
154 {if $tagAdditions}
155 <tr><td class="label">{ts}Tagged Imported Contacts{/ts}</td>
156 <td colspan="2" class="explanation">
157 {foreach from="$tagAdditions" item="tag"}
158 <label>{$tag.name}</label>:
159 {ts count=$tag.added plural='%count contacts are tagged with this tag.'}One contact is tagged with this tag.{/ts}
160 {if $tag.notAdded}{ts count=$tag.notAdded plural='%count contacts NOT tagged (already tagged to this tag).'}One contact NOT tagged (already tagged to this tag).{/ts}{/if}<br />
161 {/foreach}
162 </td>
163 </tr>
164 {/if}
165
166 </table>
167
168 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
169 </div>
170