dbfb6212c3c35635cbee95b73dc1caabef726571
[civicrm-core.git] / templates / CRM / Activity / Import / Form / DataSource.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
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 {* Activity Import Wizard - Step 1 (upload data file) *}
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-activity-import-uploadfile-form-block">
29
30 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
31 {include file="CRM/common/WizardHeader.tpl"}
32
33 <div class="help">
34 <p>
35 {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}
36 {help id="id-upload"}
37 </p>
38 </div>
39 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
40 <div id="upload-file">
41 <h3>{ts}Upload Data File{/ts}</h3>
42 <table class="form-layout-compressed">
43 <tr class="crm-activity-import-uploadfile-form-block-uploadFile">
44 <td class="label">{$form.uploadFile.label}</td>
45 <td>{$form.uploadFile.html}<br />
46 <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>
47 </td>
48 </tr>
49 <tr class="crm-activity-import-uploadfile-form-block-skipColumnHeader">
50 <td class="label"></td>
51 <td>{$form.skipColumnHeader.html}{$form.skipColumnHeader.label}<br />
52 <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>
53 </td>
54 </tr>
55 <tr class="crm-import-datasource-form-block-fieldSeparator">
56 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
57 <td>{$form.fieldSeparator.html}</td>
58 </tr>
59 <tr>{include file="CRM/Core/Date.tpl"}</tr>
60 {if $savedMapping}
61 <tr class="crm-activity-import-uploadfile-form-block-savedMapping">
62 <td>{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</td>
63 <td>{$form.savedMapping.html}<br />
64 <span class="description">{ts}Select Saved Mapping or Leave blank to create a new One.{/ts}</span>
65 {/if}
66 </td>
67 </tr>
68 </table>
69 <div class="spacer"></div>
70 </div>
71 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
72 </div>