Merge pull request #22981 from braders/remove-assert
[civicrm-core.git] / templates / CRM / Member / Import / Form / DataSource.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
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 |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10 <div class="crm-block crm-form-block crm-member-import-uploadfile-form-block">
11{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
12 {include file="CRM/common/WizardHeader.tpl"}
f6eedce7 13<div class="help">
6a488035
TO
14 {ts}The Membership Import Wizard allows you to easily upload memberships from other applications into CiviCRM.{/ts}
15 {ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match the membership data to an existing contact in your CiviCRM database.{/ts} {help id='upload'}
16 </div>
17{* Membership Import Wizard - Step 1 (upload data file) *}
18{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
19
20<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
21 <table class="form-layout">
22 <div id="upload-file" class="form-item">
23 <tr class="crm-member-import-uploadfile-from-block-uploadFile">
24 <td class="label">{$form.uploadFile.label}</td>
25 <td>{$form.uploadFile.html}<br />
26 <span class="description">{ts}File format must be comma-separated-values (CSV).{/ts}</span>
27 <br /><span>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</span>
28 </td>
29 </tr>
30 <tr class="crm-member-import-uploadfile-from-block-skipColumnHeader">
31 <td class="label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$form.skipColumnHeader.html} </td>
32 <td>{$form.skipColumnHeader.label}<br />
33 <span class="description">
34 {ts}Check this box if the first row of your file consists of field names (Example: 'Contact ID', 'Amount').{/ts}</span>
35 </td>
36 <tr class="crm-member-import-uploadfile-from-block-contactType">
37 <td class="label">{$form.contactType.label}</tdt>
38 <td>{$form.contactType.html}<br />
39 <span class="description">
40 {ts}Select 'Individual' if you are importing memberships for individual persons.{/ts}
41 {ts}Select 'Organization' or 'Household' if you are importing memberships made by contacts of that type. (NOTE: Some built-in contact types may not be enabled for your site.){/ts}
42 </span>
43 </td>
44 </tr>
45 <tr class="crm-member-import-uploadfile-from-block-onDuplicate">
46 <td class="label" >{$form.onDuplicate.label}</td>
47 <td>{$form.onDuplicate.html} {help id="id-onDuplicate"}</td>
48 </tr>
19a68bae
CW
49 <tr class="crm-import-datasource-form-block-fieldSeparator">
50 <td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
51 <td>{$form.fieldSeparator.html}</td>
52 </tr>
6a488035
TO
53 <tr class="crm-member-import-uploadfile-from-block-date">{include file="CRM/Core/Date.tpl"}</tr>
54{if $savedMapping}
55 <tr class="crm-member-import-uploadfile-from-block-savedMapping">
56 <td>{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</td>
57 <td>{$form.savedMapping.html}<br />
58 <span class="description">{ts}If you want to use a previously saved import field mapping - select it here.{/ts}</span>
59 </td>
60 </tr>
61{/if}
62</div>
63</table>
64<div class="spacer"></div>
65
66<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
232624b1 67</div>