Merge remote-tracking branch 'origin/4.6' into 4.6-master-2015-08-03-16-00-35
[civicrm-core.git] / templates / CRM / Custom / Import / Form / DataSource.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {* Multi-value Custom Data 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-custom-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 Multi-value Custom Data Import Wizard allows you to easily upload data to populate multi-value custom data records (such as employment or education history) for existing contacts.{/ts}
36 {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match the incoming data to an existing contact 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-custom-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-custom-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>&nbsp;</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>&nbsp;</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-custom-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-custom-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
79 <tr class="crm-import-datasource-form-block-fieldSeparator">
80 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
81 <td>{$form.fieldSeparator.html}</td>
82 </tr>
83 <tr class="crm-custom-import-uploadfile-form-block-date_format">
84 {include file="CRM/Core/Date.tpl"}
85 </tr>
86 {if $savedMapping}
87 <tr class="crm-custom-import-uploadfile-form-block-savedMapping">
88 <td class="label">{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</dt>
89 <td><span>{$form.savedMapping.html}</span> </td>
90 </tr>
91 <tr>
92 <td>&nbsp;</td>
93 <td class="description">{ts}Select Saved Mapping, or leave blank to create a new mapping.{/ts}</td>
94 {/if}
95 </tr>
96 </table>
97 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
98 </div>
99 </div>