commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Export / Form / table.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 - Data Mapping table used by MapFields.tpl and Preview.tpl *}
27 <div id="map-field">
28 {strip}
29 <table>
30 {if $loadedMapping}
31 <tr class="columnheader-dark"><th colspan="4">{ts 1=$savedName}Using Field Mapping: %1{/ts}</td></tr>
32 {/if}
33 <tr class="columnheader">
34 <th>{ts}Fields to Include in Export File{/ts}</th>
35 </tr>
36 {*section name=cols loop=$columnCount*}
37 {section name=cols loop=$columnCount.1}
38 {assign var="i" value=$smarty.section.cols.index}
39 <tr>
40 <td class="form-item even-row">
41 {$form.mapper.1[$i].html}
42 </td>
43 </tr>
44 {/section}
45
46 <tr>
47 <td class="form-item even-row underline-effect">
48 {$form.addMore.1.html}
49 </td>
50 </tr>
51 </table>
52 {/strip}
53
54
55 <div>
56 {if $loadedMapping}
57 <span>{$form.updateMapping.html}{$form.updateMapping.label}&nbsp;&nbsp;&nbsp;</span>
58 {/if}
59 <span>{$form.saveMapping.html}{$form.saveMapping.label}</span>
60 <div id="saveDetails" class="form-item">
61 <table class="form-layout-compressed">
62 <tr><td class="label">{$form.saveMappingName.label}</td><td>{$form.saveMappingName.html}</td></tr>
63 <tr><td class="label">{$form.saveMappingDesc.label}</td><td>{$form.saveMappingDesc.html}</td></tr>
64 </table>
65 </div>
66
67
68 <script type="text/javascript">
69 {if $mappingDetailsError }
70 cj('#saveDetails').show();
71 {else}
72 cj('#saveDetails').hide();
73 {/if}
74
75 {literal}
76 function showSaveDetails(chkbox) {
77 if (chkbox.checked) {
78 document.getElementById("saveDetails").style.display = "block";
79 document.getElementById("saveMappingName").disabled = false;
80 document.getElementById("saveMappingDesc").disabled = false;
81 } else {
82 document.getElementById("saveDetails").style.display = "none";
83 document.getElementById("saveMappingName").disabled = true;
84 document.getElementById("saveMappingDesc").disabled = true;
85 }
86 }
87 {/literal}
88 cj('Select[id^="mapper[1]"][id$="[1]"]').addClass('huge');
89 </script>
90 </div>
91
92 </div>