2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* Export Wizard - Step 2 *}
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-export-form-block">
31 <p>{ts}<strong>Export PRIMARY fields</strong> provides the most commonly used data values. This includes primary address information, preferred phone and email.{/ts}</p>
32 <p>{ts}Click <strong>Select fields for export</strong> and then <strong>Continue</strong> to choose a subset of fields for export. This option allows you to export multiple specific locations (Home, Work, etc.) as well as custom data. You can also save your selections as a 'field mapping' so you can use it again later.{/ts}</p>
35 {* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
36 {include file="CRM/common/WizardHeader.tpl"}
38 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
39 <div id="export-type">
40 <div class="crm-section crm-exportOption-section">
41 <h3>{ts count=$totalSelectedRecords plural='%count records selected for export.'}One record selected for export.{/ts}</h3>
42 <div class="content-no-label crm-content-exportOption">
43 {$form.exportOption.html}
47 <div id="map" class="crm-section crm-export-mapping-section">
49 <div class="label crm-label-export-mapping">
52 <div class="content crm-content-export-mapping">
55 <div class="clear"></div>
59 {if $taskName eq 'Export Contacts' OR $component eq false}
60 <div class="crm-section crm-export-mergeOptions-section">
61 <div class="label crm-label-mergeOptions">{ts}Merge Options{/ts} {help id="id-export_merge_options"}</div>
62 <div class="content crm-content-mergeOptions">
63 {$form.mergeOption.html}
65 <div id='greetings' class="content crm-content-greetings class='hiddenElement'">
66 <table class="form-layout-compressed">
68 <td>{$form.postal_greeting.label}</td>
69 <td>{$form.postal_greeting.html}</td>
71 <tr id='postal_greeting_other_wrapper' class='hiddenElement'>
72 <td>{$form.postal_greeting_other.label}</td>
73 <td>{$form.postal_greeting_other.html}</td>
75 <tr><td></td><td></td></tr>
77 <td>{$form.addressee.label}</td>
78 <td>{$form.addressee.html}</td>
80 <tr id='addressee_other_wrapper' class='hiddenElement'>
81 <td>{$form.addressee_other.label}</td>
82 <td>{$form.addressee_other.html}</td>
85 <div class="clear"> </div>
88 <div class="content crm-content-mergeSameHousehold">
89 {$form.merge_same_household.html}
92 <div class="label crm-label-postalMailingExport">{$form.postal_mailing_export.label}</div>
93 <div class="content crm-content-postalMailingExport">
94 {$form.postal_mailing_export.html}
95 {ts}Exclude contacts with "do not mail" privacy, no street address, or who are deceased.{/ts}
98 <div class="label crm-label-additionalGroup">{$form.additional_group.label}</div>
99 <div class="content crm-content-additionalGroup">
100 {$form.additional_group.html}
102 <div class="clear"></div>
108 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
111 <script type="text/javascript">
112 function showMappingOption( )
114 var element = document.getElementsByName("exportOption");
116 if ( element[1].checked ) {
122 showMappingOption( );
124 var matchingContacts = '';
125 {/literal}{if $matchingContacts}{literal}
126 matchingContacts = {/literal}'{$matchingContacts}'{literal};
127 {/literal}{/if}{literal}
129 function showGreetingOptions( )
131 var mergeAddress = cj( "input[name='mergeOption']:checked" ).val( );
133 if ( mergeAddress == 1 ) {
134 cj( "#greetings" ).show( );
136 cj( "#greetings" ).hide( );
140 function showOther( ele )
142 if ( cj('option:selected', ele).text( ) == '{/literal}{ts escape='js'}Other{/ts}{literal}' ) {
143 cj('#' + cj(ele).attr('id') + '_other_wrapper').show( );
145 cj('#' + cj(ele).attr('id') + '_other').val('');
146 cj('#' + cj(ele).attr('id') + '_other_wrapper').hide( );
150 showGreetingOptions( );
151 showOther(cj('#postal_greeting'));
152 showOther(cj('#addressee'));