Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Contribute / Form / ContributionPage / Premium.tpl
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 <div id="help">
27 {ts}Edit <strong>Premiums Settings</strong> to customize the title and introductory message (e.g ...in appreciation of your support, you will be able to select from a number of exciting thank-you gifts...). You can optionally provide a contact email address and/or phone number for inquiries.{/ts}
28 {ts}Then select and review the premiums that you want to offer on this contribution page.{/ts}
29 </div>
30 <div id="id_Premiums" class="crm-block crm-form-block crm-contribution-contributionpage-premium-form-block">
31 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
32 <table class="form-layout-compressed">
33 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_active">
34 <td class="label">{$form.premiums_active.label}</td>
35 <td class="html-adjust">{$form.premiums_active.html}<br/>
36 <span class="description">{ts}Is the Premiums section enabled for this Online Contributions page?{/ts}</span>
37 </td>
38 </tr>
39 </table>
40
41 <div id="premiumSettings">
42 <div class="crm-accordion-wrapper crm-premium-settings-accordion collapsed">
43 <div class="crm-accordion-header">
44 {ts}Premiums Settings{/ts}
45 </div>
46 <div class="crm-accordion-body">
47 <table class="form-layout-compressed">
48 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_intro_title">
49 <td class="label">
50 {$form.premiums_intro_title.label}
51 {if $action == 2}
52 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_premiums'
53 field='premiums_intro_title' id=$contributionPageID}
54 {/if}
55 </td>
56 <td class="html-adjust">{$form.premiums_intro_title.html}<br/>
57 <span class="description">{ts}Title to appear at the top of the Premiums section.{/ts}</span>
58 </td>
59 </tr>
60 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_intro_text">
61 <td class="label">
62 {$form.premiums_intro_text.label}
63 {if $action == 2}
64 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_premiums'
65 field='premiums_intro_text' id=$contributionPageID}
66 {/if}
67 </td>
68 <td class="html-adjust">{$form.premiums_intro_text.html}<br/>
69 <span class="description">
70 {ts}Enter content for the introductory message. This will be displayed below the Premiums section title. You may include HTML formatting tags. You can also include images, as long as they are already uploaded to a server - reference them using complete URLs.{/ts}
71 </span>
72 </td>
73 </tr>
74 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_contact_email">
75 <td class="label">
76 {$form.premiums_contact_email.label}
77 </td>
78 <td class="html-adjust">{$form.premiums_contact_email.html}<br/>
79 <span class="description">
80 {ts}This email address is included in automated contribution receipts if the contributor has selected a premium. It should be an appropriate contact mailbox for inquiries about premium fulfillment/shipping.{/ts}
81 </span>
82 </td>
83 </tr>
84 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_contact_phone">
85 <td class="label">
86 {$form.premiums_contact_phone.label}
87 </td>
88 <td class="html-adjust">{$form.premiums_contact_phone.html}<br/>
89 <span class="description">
90 {ts}This phone number is included in automated contribution receipts if the contributor has selected a premium. It should be an appropriate phone number for inquiries about premium fulfillment/shipping.{/ts}
91 </span>
92 </td>
93 </tr>
94 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_display_min_contribution">
95 <td class="label">
96 {$form.premiums_display_min_contribution.label}
97 </td>
98 <td class="html-adjust">{$form.premiums_display_min_contribution.html}<br/>
99 <span class="description">
100 {ts}Should the minimum contribution amount be automatically displayed after each premium description?{/ts}
101 </span>
102 </td>
103 </tr>
104 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_nothankyou_label">
105 <td class="label">
106 {$form.premiums_nothankyou_label.label}<span class="crm-marker"> *</span>
107 </td>
108 <td class="html-adjust">{$form.premiums_nothankyou_label.html}<br/>
109 <span class="description">{ts}You can change the text for the 'No thank-you' radio button.{/ts}</span>
110 </td>
111 </tr>
112 <tr class="crm-contribution-contributionpage-premium-form-block-premiums_nothankyou_position">
113 <td class="label">
114 {$form.premiums_nothankyou_position.label}
115 </td>
116 <td class="html-adjust">{$form.premiums_nothankyou_position.html}<br/>
117 <span class="description">
118 {ts}Place the 'No thank-you' radio button before OR after the list of premiums offered on this page.{/ts}
119 </span>
120 </td>
121 </tr>
122 </table>
123 </div>
124 <!-- /.crm-accordion-body -->
125 </div>
126 <!-- /.crm-accordion-wrapper -->
127
128 {* include premium product templates *}
129 {include file="CRM/Contribute/Page/Premium.tpl"}
130 </div>
131
132 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
133 </div>
134
135 <script type="text/javascript">
136 {literal}
137 CRM.$(function($) {
138
139 // bind click event to premiums_active checkbox
140 $('#premiums_active').click(function () {
141 premiumBlock();
142 });
143
144 // hide premium setting if premium block is not enabled
145 if (!$('#premiums_active').prop('checked')) {
146 $('#premiumSettings').hide();
147 }
148 });
149
150 // function to show/hide premium settings
151 function premiumBlock() {
152 if (cj('#premiums_active').prop('checked')) {
153 cj('#premiumSettings').show();
154 }
155 else {
156 cj('#premiumSettings').hide();
157 }
158 return false;
159 }
160
161 {/literal}
162 </script>