commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Export / Form / Select.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 {* 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">
29
30 <div id="help">
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>
33 </div>
34
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"}
37
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}
44 </div>
45 </div>
46
47 <div id="map" class="crm-section crm-export-mapping-section">
48 {if $form.mapping }
49 <div class="label crm-label-export-mapping">
50 {$form.mapping.label}
51 </div>
52 <div class="content crm-content-export-mapping">
53 {$form.mapping.html}
54 </div>
55 <div class="clear"></div>
56 {/if}
57 </div>
58
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 &nbsp;{$form.mergeOption.html}
64 </div>
65 <div id='greetings' class="content crm-content-greetings class='hiddenElement'">
66 <table class="form-layout-compressed">
67 <tr>
68 <td>{$form.postal_greeting.label}</td>
69 <td>{$form.postal_greeting.html}</td>
70 </tr>
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>
74 </tr>
75 <tr><td></td><td></td></tr>
76 <tr>
77 <td>{$form.addressee.label}</td>
78 <td>{$form.addressee.html}</td>
79 </tr>
80 <tr id='addressee_other_wrapper' class='hiddenElement'>
81 <td>{$form.addressee_other.label}</td>
82 <td>{$form.addressee_other.html}</td>
83 </tr>
84 </table>
85 <div class="clear">&nbsp;</div>
86 </div>
87
88 <div class="content crm-content-mergeSameHousehold">
89 &nbsp;{$form.merge_same_household.html}
90 </div>
91 <br/>
92 <div class="label crm-label-postalMailingExport">{$form.postal_mailing_export.label}</div>
93 <div class="content crm-content-postalMailingExport">
94 &nbsp;{$form.postal_mailing_export.html}
95 {ts}Exclude contacts with "do not mail" privacy, no street address, or who are deceased.{/ts}
96 </div>
97 <br/>
98 <div class="label crm-label-additionalGroup">{$form.additional_group.label}</div>
99 <div class="content crm-content-additionalGroup">
100 &nbsp;{$form.additional_group.html}
101 </div>
102 <div class="clear"></div>
103 </div>
104 {/if}
105
106 </div>
107
108 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
109 </div>
110 {literal}
111 <script type="text/javascript">
112 function showMappingOption( )
113 {
114 var element = document.getElementsByName("exportOption");
115
116 if ( element[1].checked ) {
117 cj('#map').show();
118 } else {
119 cj('#map').hide();
120 }
121 }
122 showMappingOption( );
123
124 var matchingContacts = '';
125 {/literal}{if $matchingContacts}{literal}
126 matchingContacts = {/literal}'{$matchingContacts}'{literal};
127 {/literal}{/if}{literal}
128
129 function showGreetingOptions( )
130 {
131 var mergeAddress = cj( "input[name='mergeOption']:checked" ).val( );
132
133 if ( mergeAddress == 1 ) {
134 cj( "#greetings" ).show( );
135 } else {
136 cj( "#greetings" ).hide( );
137 }
138 }
139
140 function showOther( ele )
141 {
142 if ( cj('option:selected', ele).text( ) == '{/literal}{ts escape='js'}Other{/ts}{literal}' ) {
143 cj('#' + cj(ele).attr('id') + '_other_wrapper').show( );
144 } else {
145 cj('#' + cj(ele).attr('id') + '_other').val('');
146 cj('#' + cj(ele).attr('id') + '_other_wrapper').hide( );
147 }
148 }
149
150 showGreetingOptions( );
151 showOther(cj('#postal_greeting'));
152 showOther(cj('#addressee'));
153 </script>
154 {/literal}