Merge pull request #23016 from pradpnayak/optionValue
[civicrm-core.git] / templates / CRM / Event / 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 {* Event 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
13 <div class="crm-block crm-form-block crm-event-import-uploadfile-form-block">
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 {ts}The Event Import Wizard allows you to easily upload event participation data such as event registrations from other applications into CiviCRM.{/ts}
19 {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match the participant data to an existing contact in your CiviCRM database.{/ts} {help id='upload'}
20 </div>
21 <div id="upload-file" class="form-item">
22 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
23 <table class="form-layout">
24 <tr class="crm-event-import-uploadfile-form-block-uploadFile">
25 <td class="label">{$form.uploadFile.label}</td>
26 <td>{$form.uploadFile.html}<br />
27 <span class="description">
28 {ts}File format must be comma-separated-values (CSV).{/ts}
29 </span>
30 </td>
31 </tr>
32 <tr>
33 <td>&nbsp;</td>
34 <td>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</td>
35 </tr>
36 <tr class="crm-participants-form-block-skipColumnHeader">
37 <td>&nbsp;</td>
38 <td>{$form.skipColumnHeader.html} {$form.skipColumnHeader.label}<br />
39 <span class="description">
40 {ts}Check this box if the first row of your file consists of field names (Example: "Contact ID", "Participant Role").{/ts}
41 </span>
42 </td>
43 </tr>
44 <tr class="crm-event-import-uploadfile-form-block-contactType">
45 <td class="label">{$form.contactType.label}</td>
46 <td>{$form.contactType.html}<br />
47 <span class="description">
48 {ts}Select 'Individual' if you are importing event participation data for individual persons.{/ts}
49 {ts}Select 'Organization' or 'Household' if you are importing event participation data for contacts of that type. (NOTE: Some built-in contact types may not be enabled for your site.){/ts}
50 </span>
51 </td>
52 </tr>
53 <tr class="crm-event-import-uploadfile-form-block-onDuplicate">
54 <td class="label">{$form.onDuplicate.label}</td>
55 <td>{$form.onDuplicate.html} {help id="id-onDuplicate"}</td>
56 </tr>
57
58 <tr class="crm-import-datasource-form-block-fieldSeparator">
59 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
60 <td>{$form.fieldSeparator.html}</td>
61 </tr>
62 <tr class="crm-event-import-uploadfile-form-block-date_format">
63 {include file="CRM/Core/Date.tpl"}
64 </tr>
65 {if $savedMapping}
66 <tr class="crm-event-import-uploadfile-form-block-savedMapping">
67 <td class="label">{$form.savedMapping.label}</td>
68 <td><span>{$form.savedMapping.html}</span> </td>
69 </tr>
70 <tr>
71 <td>&nbsp;</td>
72 <td class="description">{ts}Select Saved Mapping, or leave blank to create a new mapping.{/ts}</td>
73 {/if}
74 </tr>
75 </table>
76 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
77 </div>
78 </div>