Commit | Line | Data |
---|---|---|
9ff5f6c0 N |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.4 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | ||
27 | {* API Import Wizard - Step 1 (upload data file) *} | |
28 | {* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *} | |
29 | ||
30 | <div class="crm-block crm-form-block crm-api-import-uploadfile-form-block"> | |
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 | ||
34 | <div id="help"> | |
35 | {ts}The API Import Wizard allows you to easily upload data against any API create method from other applications into CiviCRM.{/ts} | |
36 | {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match the data to an existing record in your CiviCRM database.{/ts} {help id='upload'} | |
37 | </div> | |
38 | <div id="upload-file" class="form-item"> | |
39 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
40 | <table class="form-layout"> | |
41 | <tr class="crm-api-import-entity-form-block-entity"> | |
42 | <td class="label">{$form.entity.label}</td> | |
43 | <td>{$form.entity.html}</td> | |
44 | </tr> | |
45 | <tr class="crm-api-import-uploadfile-form-block-uploadFile"> | |
46 | <td class="label">{$form.uploadFile.label}</td> | |
47 | <td>{$form.uploadFile.html}<br /> | |
48 | <span class="description"> | |
49 | {ts}File format must be comma-separated-values (CSV).{/ts} | |
50 | </span> | |
51 | </td> | |
52 | </tr> | |
53 | <tr> | |
54 | <td> </td> | |
55 | <td>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</td> | |
56 | </tr> | |
57 | <tr class="crm-import-form-block-skipColumnHeader"> | |
58 | <td> </td> | |
59 | <td>{$form.skipColumnHeader.html} {$form.skipColumnHeader.label}<br /> | |
60 | <span class="description"> | |
61 | {ts}Check this box if the first row of your file consists of field names (Example: "Contact ID", "Participant Role").{/ts} | |
62 | </span> | |
63 | </td> | |
64 | </tr> | |
65 | <tr class="crm-api-import-uploadfile-form-block-multipleCustomData"> | |
66 | <td class="label">{$form.multipleCustomData.label}</dt> | |
67 | <td><span>{$form.multipleCustomData.html}</span> </td> | |
68 | </tr> | |
69 | <tr class="crm-member-import-uploadfile-from-block-contactType"> | |
70 | <td class="label">{$form.contactType.label}</td> | |
71 | <td>{$form.contactType.html}<br /> | |
72 | <span class="description"> | |
73 | {ts}Select 'Individual' if you are importing custom data for individual persons.{/ts} | |
74 | {ts}Select 'Organization' or 'Household' if you are importing custom data . (NOTE: Some built-in contact types may not be enabled for your site.){/ts} | |
75 | </span> | |
76 | </td> | |
77 | </tr> | |
78 | <tr class="crm-api-import-uploadfile-form-block-date_format"> | |
79 | {include file="CRM/Core/Date.tpl"} | |
80 | </tr> | |
81 | {if $savedMapping} | |
82 | <tr class="crm-api-import-uploadfile-form-block-savedMapping"> | |
83 | <td class="label">{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</dt> | |
84 | <td><span>{$form.savedMapping.html}</span> </td> | |
85 | </tr> | |
86 | <tr> | |
87 | <td> </td> | |
88 | <td class="description">{ts}Select Saved Mapping, or leave blank to create a new mapping.{/ts}</td> | |
89 | {/if} | |
90 | </tr> | |
91 | </table> | |
92 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
93 | </div> | |
94 | </div> |