Merge pull request #23016 from pradpnayak/optionValue
[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 {* Activity Import Wizard - Step 1 (upload data file) *}
11 {* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
12 <div class="crm-block crm-form-block crm-activity-import-uploadfile-form-block">
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"}
16
17 <div class="help">
18 <p>
19 {ts}The Activity Import Wizard allows you to easily upload activity from other applications into CiviCRM. Contacts must already exist in your CiviCRM database prior to importing activity.{/ts}
20 {help id="id-upload"}
21 </p>
22 </div>
23 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
24 <div id="upload-file">
25 <h3>{ts}Upload Data File{/ts}</h3>
26 <table class="form-layout-compressed">
27 <tr class="crm-activity-import-uploadfile-form-block-uploadFile">
28 <td class="label">{$form.uploadFile.label}</td>
29 <td>{$form.uploadFile.html}<br />
30 <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>
31 </td>
32 </tr>
33 <tr class="crm-activity-import-uploadfile-form-block-skipColumnHeader">
34 <td class="label"></td>
35 <td>{$form.skipColumnHeader.html}{$form.skipColumnHeader.label}<br />
36 <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>
37 </td>
38 </tr>
39 <tr class="crm-import-datasource-form-block-fieldSeparator">
40 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
41 <td>{$form.fieldSeparator.html}</td>
42 </tr>
43 <tr>{include file="CRM/Core/Date.tpl"}</tr>
44 {if $savedMapping}
45 <tr class="crm-activity-import-uploadfile-form-block-savedMapping">
46 <td>{$form.savedMapping.label}</td>
47 <td>{$form.savedMapping.html}<br />
48 <span class="description">{ts}Select Saved Mapping or Leave blank to create a new One.{/ts}</span>
49 {/if}
50 </td>
51 </tr>
52 </table>
53 <div class="spacer"></div>
54 </div>
55 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
56 </div>