| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 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 | {* Event Import Wizard - Step 2 (map incoming data fields) *} |
| 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-event-import-mapfield-form-block"> |
| 29 | {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *} |
| 30 | {include file="CRM/common/WizardHeader.tpl"} |
| 31 | <div id="help"> |
| 32 | <p>{ts}Review the values shown below from the first 2 rows of your import file and select the matching CiviCRM database fields from the drop-down lists in the right-hand column. Select '- do not import -' for any columns in the import file that you want ignored.{/ts}</p> |
| 33 | {if $savedMapping} |
| 34 | <p>{ts}Click 'Load Saved Field Mapping' if data has been previously imported from the same source. You can then select the saved import mapping setup and load it automatically.{/ts}<p> |
| 35 | {/if} |
| 36 | <p>{ts}If you think you may be importing additional data from the same data source, check 'Save this field mapping' at the bottom of the page before continuing. The saved mapping can then be easily reused the next time data is imported.{/ts}</p> |
| 37 | </div> |
| 38 | |
| 39 | <table class="form-layout"> |
| 40 | <tr> |
| 41 | <td> |
| 42 | <div id="crm-submit-buttons"> |
| 43 | {include file="CRM/common/formButtons.tpl" location="top"} |
| 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td>{* Table for mapping data to CRM fields *} |
| 49 | {include file="CRM/Event/Import/Form/MapTable.tpl} |
| 50 | </td> |
| 51 | </tr> |
| 52 | <tr> |
| 53 | <td> |
| 54 | <div id="crm-submit-buttons"> |
| 55 | {include file="CRM/common/formButtons.tpl" location="bottom"} |
| 56 | </div> |
| 57 | </td> |
| 58 | </tr> |
| 59 | </table> |
| 60 | {$initHideBoxes} |
| 61 | </div> |
| 62 | {literal} |
| 63 | <script type="text/javascript" > |
| 64 | if ( document.getElementsByName("saveMapping")[0].checked ) { |
| 65 | document.getElementsByName("updateMapping")[0].checked = true; |
| 66 | document.getElementsByName("saveMapping")[0].checked = false; |
| 67 | } |
| 68 | </script> |
| 69 | {/literal} |