Improvement and bug fixes
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / Confirm.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
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{if $action & 1024}
27 {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
28{/if}
29
30{include file="CRM/common/TrackingFields.tpl"}
31
569df8ec 32<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-confirm-form-block">
6a488035
TO
33 <div id="help">
34 <p>{ts}Please verify the information below carefully. Click <strong>Go Back</strong> if you need to make changes.{/ts}
35 {if $contributeMode EQ 'notify' and ! $is_pay_later}
36 {if $paymentProcessor.payment_processor_type EQ 'Google_Checkout'}
37 {ts}Click the <strong>Google Checkout</strong> button to checkout to Google, where you will select your payment method and complete the contribution.{/ts}
38 {else}
6341d448 39 {ts 1=$paymentProcessor.name 2=$button}Click the <strong>%2</strong> button to go to %1, where you will select your payment method and complete the contribution.{/ts}
6a488035
TO
40 {/if}
41 {elseif ! $is_monetary or $amount LE 0.0 or $is_pay_later}
42 {ts 1=$button}To complete this transaction, click the <strong>%1</strong> button below.{/ts}
43 {else}
44 {ts 1=$button}To complete your contribution, click the <strong>%1</strong> button below.{/ts}
45 {/if}
46 </p>
47 </div>
48 <div id="crm-submit-buttons" class="crm-submit-buttons">
49 {include file="CRM/common/formButtons.tpl" location="top"}
50 </div>
51 {if $is_pay_later}
52 <div class="bold pay_later_receipt-section">{$pay_later_receipt}</div>
53 {/if}
54
55 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"}
56
57 {if $amount GT 0 OR $minimum_fee GT 0 OR ( $priceSetID and $lineItem ) }
58 <div class="crm-group amount_display-group">
59 {if !$useForMember}
60 <div class="header-dark">
61 {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if}
62 </div>
63 {/if}
64 <div class="display-block">
65 {if !$useForMember}
66 {if $lineItem and $priceSetID}
67 {if !$amount}{assign var="amount" value=0}{/if}
68 {assign var="totalAmount" value=$amount}
69 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
70 {elseif $is_separate_payment }
71 {if $amount AND $minimum_fee}
72 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong><br />
73 {ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
74 <strong> -------------------------------------------</strong><br />
75 {ts}Total{/ts}: <strong>{$amount+$minimum_fee|crmMoney}</strong><br />
76 {elseif $amount }
77 {ts}Amount{/ts}: <strong>{$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}</strong>
78 {else}
79 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
80 {/if}
81 {else}
a32709be
PB
82 {if $totalTaxAmount }
83 {ts}Total Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney} </strong><br />
84 {/if}
6a488035
TO
85 {if $amount }
86 {ts}Total Amount{/ts}: <strong>{$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}</strong>
87 {else}
88 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
89 {/if}
90 {/if}
91 {/if}
92
93 {if $is_recur}
9cc96227 94 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
6a488035
TO
95{crmRegion name="contribution-confirm-recur-membership"}
96 <br />
97 <strong>{ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts}</strong></p>
ddb38bab 98 <div class="description crm-auto-renew-cancel-info">({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renewal option by visiting the web page link that will be included in your receipt.{/ts})</div>
6a488035
TO
99{/crmRegion}
100 {else}
101{crmRegion name="contribution-confirm-recur"}
102 {if $installments}
33c77e24
EM
103 {if $frequency_interval > 1}
104 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}I want to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
105 {else}
c2ce7ee3 106 <p><strong>{ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts}</strong></p>
33c77e24 107 {/if}
6a488035 108 {else}
33c77e24 109 {if $frequency_interval > 1}
c2ce7ee3 110 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts}</strong></p>
33c77e24 111 {else}
c2ce7ee3 112 <p><strong>{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}</strong></p>
33c77e24 113 {/if}
6a488035
TO
114 {/if}
115 <p>{ts}Your initial contribution will be processed once you complete the confirmation step. You will be able to cancel the recurring contribution by visiting the web page link that will be included in your receipt.{/ts}</p>
116{/crmRegion}
117 {/if}
118 {/if}
119
120 {if $is_pledge }
121 {if $pledge_frequency_interval GT 1}
122 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
123 {else}
124 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}</strong></p>
125 {/if}
126 {if $is_pay_later}
127 <p>{ts 1=$receiptFromEmail 2=$button}Click &quot;%2&quot; below to register your pledge. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}</p>
128 {else}
129 <p>{ts 1=$receiptFromEmail 2=$button}Your initial pledge payment will be processed when you click &quot;%2&quot; below. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}</p>
130 {/if}
131 {/if}
132 </div>
133 </div>
134 {/if}
133e2c99 135
136 {if $honor_block_is_active}
137 <div class="crm-group honor_block-group">
138 <div class="header-dark">
139 {$soft_credit_type}
140 </div>
141 <div class="display-block">
142 <div class="label-left crm-section honoree_profile-section">
8af73472 143 <strong>{$honorName}</strong></br>
133e2c99 144 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
145 </div>
146 </div>
147 </div>
148 {/if}
6a488035
TO
149
150 {if $customPre}
a17a96df
DG
151 <fieldset class="label-left crm-profile-view">
152 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
153 </fieldset>
6a488035
TO
154 {/if}
155
156 {if $pcpBlock}
157 <div class="crm-group pcp_display-group">
158 <div class="header-dark">
159 {ts}Contribution Honor Roll{/ts}
160 </div>
161 <div class="display-block">
162 {if $pcp_display_in_roll}
163 {ts}List my contribution{/ts}
164 {if $pcp_is_anonymous}
165 <strong>{ts}anonymously{/ts}.</strong>
166 {else}
167 {ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
168 {if $pcp_personal_note}
169 {ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
170 {else}
171 <strong>{ts}With no personal note{/ts}</strong>
172 {/if}
173 {/if}
174 {else}
175 {ts}Don't list my contribution in the honor roll.{/ts}
176 {/if}
177 <br />
178 </div>
179 </div>
180 {/if}
181
182 {if $onbehalfProfile}
a17a96df 183 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
133e2c99 184 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
6a488035
TO
185 <div class="crm-section organization_email-section">
186 <div class="label">{ts}Organization Email{/ts}</div>
187 <div class="content">{$onBehalfEmail}</div>
188 <div class="clear"></div>
189 </div>
190 </div>
191 {/if}
192
8ae4d0d3 193 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
194 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
6a488035
TO
195 {if $billingName or $address}
196 <div class="crm-group billing_name_address-group">
197 <div class="header-dark">
198 {ts}Billing Name and Address{/ts}
199 </div>
200 <div class="crm-section no-label billing_name-section">
201 <div class="content">{$billingName}</div>
202 <div class="clear"></div>
203 </div>
204 <div class="crm-section no-label billing_address-section">
205 <div class="content">{$address|nl2br}</div>
206 <div class="clear"></div>
207 </div>
208 </div>
209 {/if}
210 {/if}
211 {if $email}
212 <div class="crm-group contributor_email-group">
213 <div class="header-dark">
214 {ts}Your Email{/ts}
215 </div>
216 <div class="crm-section no-label contributor_email-section">
217 <div class="content">{$email}</div>
218 <div class="clear"></div>
219 </div>
220 </div>
221 {/if}
222 {/if}
223
224 {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *}
225 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
226{crmRegion name="contribution-confirm-billing-block"}
227 {if ($credit_card_number or $bank_account_number)}
228 <div class="crm-group credit_card-group">
229 <div class="header-dark">
230 {if $paymentProcessor.payment_type & 2}
231 {ts}Direct Debit Information{/ts}
232 {else}
233 {ts}Credit Card Information{/ts}
234 {/if}
235 </div>
236 {if $paymentProcessor.payment_type & 2}
237 <div class="display-block">
238 {ts}Account Holder{/ts}: {$account_holder}<br />
239 {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
240 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
241 {ts}Bank Name{/ts}: {$bank_name}<br />
242 </div>
243 {if $contributeMode eq 'direct'}
244 <div class="crm-group debit_agreement-group">
245 <div class="header-dark">
246 {ts}Agreement{/ts}
247 </div>
248 <div class="display-block">
249 {ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
250 </div>
251 </div>
252 {/if}
253 {else}
254 <div class="crm-section no-label credit_card_details-section">
a17a96df 255 <div class="content">{$credit_card_type}</div>
6a488035
TO
256 <div class="content">{$credit_card_number}</div>
257 <div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
258 <div class="clear"></div>
259 </div>
260 {/if}
261 </div>
262 {/if}
263{/crmRegion}
264 {/if}
265
266 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"}
267
268 {if $customPost}
a17a96df
DG
269 <fieldset class="label-left crm-profile-view">
270 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
271 </fieldset>
6a488035
TO
272 {/if}
273
274 {if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } {* In 'notify mode, contributor is taken to processor payment forms next *}
275 <div class="messages status continue_instructions-section">
276 <p>
277 {if $is_pay_later OR $amount LE 0.0}
278 {ts 1=$button}Your transaction will not be completed until you click the <strong>%1</strong> button. Please click the button one time only.{/ts}
279 {else}
280 {ts 1=$button}Your contribution will not be completed until you click the <strong>%1</strong> button. Please click the button one time only.{/ts}
281 {/if}
282 </p>
283 </div>
284 {/if}
285
286 {if $paymentProcessor.payment_processor_type EQ 'Google_Checkout' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) and ! $is_pay_later}
287 <fieldset class="crm-group google_checkout-group"><legend>{ts}Checkout with Google{/ts}</legend>
288 <table class="form-layout-compressed">
289 <tr>
290 <td class="description">{ts}Click the Google Checkout button to continue.{/ts}</td>
291 </tr>
292 <tr>
293 <td>{$form._qf_Confirm_next_checkout.html} <span style="font-size:11px; font-family: Arial, Verdana;">Checkout securely. Pay without sharing your financial information. </span></td>
294 </tr>
295 </table>
296 </fieldset>
297 {/if}
298
299 <div id="crm-submit-buttons" class="crm-submit-buttons">
300 {include file="CRM/common/formButtons.tpl" location="bottom"}
301 </div>
302</div>