[REF] Remove handling for non-existent 'savedMapping' field
[civicrm-core.git] / templates / CRM / Activity / Import / Form / DataSource.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 {* Import Wizard - Step 1 (choose data source) *}
11 <div class="crm-block crm-form-block crm-import-datasource-form-block">
12
13 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
14 {include file="CRM/common/WizardHeader.tpl"}
15 <div class="help">
16 {ts 1=$importEntity 2= $importEntities}The %1 Import Wizard allows you to easily upload %2 from other applications into CiviCRM.{/ts}
17 {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match an existing contact in your CiviCRM database.{/ts} {help id='upload'}
18 </div>
19
20 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
21 <div id="upload-file">
22 <h3>{ts}Upload Data File{/ts}</h3>
23 <table class="form-layout-compressed">
24 <tr class="crm-import-uploadfile-from-block-uploadFile">
25 <td class="label">{$form.uploadFile.label}</td>
26 <td>{$form.uploadFile.html}<br />
27 <span class="description">{ts}File format must be comma-separated-values (CSV).{/ts}</span><br /><span>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</span>
28 </td>
29 </tr>
30 <tr class="crm-import-uploadfile-form-block-skipColumnHeader">
31 <td class="label"></td>
32 <td>{$form.skipColumnHeader.html}{$form.skipColumnHeader.label}<br />
33 <span class="description">{ts}Check this box if the first row of your file consists of field names (Example: 'Contact ID', 'Activity Type', 'Activity Date').{/ts}</span>
34 </td>
35 </tr>
36 <tr class="crm-import-datasource-form-block-fieldSeparator">
37 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
38 <td>{$form.fieldSeparator.html}</td>
39 </tr>
40 <tr>{include file="CRM/Core/Date.tpl"}</tr>
41 {if $savedMapping}
42 <tr class="crm-import-uploadfile-form-block-savedMapping">
43 <td>{$form.savedMapping.label}</td>
44 <td>{$form.savedMapping.html}<br />
45 <span class="description">{ts}Select Saved Mapping or Leave blank to create a new One.{/ts}</span>
46 {/if}
47 </td>
48 </tr>
49 </table>
50 <div class="spacer"></div>
51 </div>
52 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
53 </div>