Merge pull request #10946 from mattwire/CRM-21037_activity_sendsms_unittests
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / Confirm.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
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">
f6eedce7 33 <div class="help">
6a488035
TO
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}
229159bf 36 {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
37 {elseif ! $is_monetary or $amount LE 0.0 or $is_pay_later}
38 {ts 1=$button}To complete this transaction, click the <strong>%1</strong> button below.{/ts}
39 {else}
40 {ts 1=$button}To complete your contribution, click the <strong>%1</strong> button below.{/ts}
41 {/if}
42 </p>
43 </div>
44 <div id="crm-submit-buttons" class="crm-submit-buttons">
45 {include file="CRM/common/formButtons.tpl" location="top"}
46 </div>
47 {if $is_pay_later}
48 <div class="bold pay_later_receipt-section">{$pay_later_receipt}</div>
49 {/if}
50
51 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"}
52
f6de5cca 53 {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
6a488035
TO
54 <div class="crm-group amount_display-group">
55 {if !$useForMember}
56 <div class="header-dark">
57 {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if}
58 </div>
59 {/if}
60 <div class="display-block">
61 {if !$useForMember}
62 {if $lineItem and $priceSetID}
63 {if !$amount}{assign var="amount" value=0}{/if}
64 {assign var="totalAmount" value=$amount}
65 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
66 {elseif $is_separate_payment }
67 {if $amount AND $minimum_fee}
68 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong><br />
69 {ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
70 <strong> -------------------------------------------</strong><br />
71 {ts}Total{/ts}: <strong>{$amount+$minimum_fee|crmMoney}</strong><br />
72 {elseif $amount }
4c030d33 73 {ts}Amount{/ts}: <strong>{$amount|crmMoney} {if $amount_level } &ndash; {$amount_level} {/if}</strong>
6a488035
TO
74 {else}
75 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
76 {/if}
77 {else}
a32709be 78 {if $totalTaxAmount }
54bcc921 79 {ts 1=$taxTerm}Total %1 Amount{/ts}: <strong>{$totalTaxAmount|crmMoney} </strong><br />
a32709be 80 {/if}
577e5f19 81 {if $amount}
4c030d33 82 {if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}: <strong>{$amount|crmMoney}{if $amount_level } &ndash; {$amount_level}{/if}</strong>
6a488035
TO
83 {else}
84 {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
85 {/if}
86 {/if}
87 {/if}
88
89 {if $is_recur}
9cc96227 90 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
6a488035
TO
91{crmRegion name="contribution-confirm-recur-membership"}
92 <br />
c843169c
MW
93 <strong>
94 {if $autoRenewOption == 1}
95 {ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts}
96 {elseif $autoRenewOption == 2}
97 {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}
98 {/if}
99 </strong></p>
ddb38bab 100 <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
101{/crmRegion}
102 {else}
103{crmRegion name="contribution-confirm-recur"}
104 {if $installments}
33c77e24
EM
105 {if $frequency_interval > 1}
106 <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>
107 {else}
c2ce7ee3 108 <p><strong>{ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts}</strong></p>
33c77e24 109 {/if}
6a488035 110 {else}
33c77e24 111 {if $frequency_interval > 1}
c2ce7ee3 112 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts}</strong></p>
33c77e24 113 {else}
c2ce7ee3 114 <p><strong>{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}</strong></p>
33c77e24 115 {/if}
6a488035
TO
116 {/if}
117 <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>
118{/crmRegion}
119 {/if}
120 {/if}
121
122 {if $is_pledge }
123 {if $pledge_frequency_interval GT 1}
124 <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>
125 {else}
126 <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>
127 {/if}
128 {if $is_pay_later}
129 <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>
130 {else}
131 <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>
132 {/if}
133 {/if}
134 </div>
135 </div>
136 {/if}
133e2c99 137
d4d01117 138 {if $onbehalfProfile|@count}
c043358f 139 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
140 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
c043358f 141 </div>
142 {/if}
143
144 {if $honoreeProfileFields|@count}
133e2c99 145 <div class="crm-group honor_block-group">
146 <div class="header-dark">
147 {$soft_credit_type}
148 </div>
149 <div class="display-block">
150 <div class="label-left crm-section honoree_profile-section">
8af73472 151 <strong>{$honorName}</strong></br>
c043358f 152 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
133e2c99 153 </div>
154 </div>
155 </div>
156 {/if}
6a488035
TO
157
158 {if $customPre}
a17a96df
DG
159 <fieldset class="label-left crm-profile-view">
160 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
161 </fieldset>
6a488035
TO
162 {/if}
163
164 {if $pcpBlock}
165 <div class="crm-group pcp_display-group">
166 <div class="header-dark">
167 {ts}Contribution Honor Roll{/ts}
168 </div>
169 <div class="display-block">
170 {if $pcp_display_in_roll}
171 {ts}List my contribution{/ts}
172 {if $pcp_is_anonymous}
173 <strong>{ts}anonymously{/ts}.</strong>
174 {else}
175 {ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
176 {if $pcp_personal_note}
177 {ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
178 {else}
179 <strong>{ts}With no personal note{/ts}</strong>
180 {/if}
181 {/if}
182 {else}
183 {ts}Don't list my contribution in the honor roll.{/ts}
184 {/if}
185 <br />
186 </div>
187 </div>
188 {/if}
189
8ae4d0d3 190 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
191 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
6a488035
TO
192 {if $billingName or $address}
193 <div class="crm-group billing_name_address-group">
194 <div class="header-dark">
195 {ts}Billing Name and Address{/ts}
196 </div>
197 <div class="crm-section no-label billing_name-section">
198 <div class="content">{$billingName}</div>
199 <div class="clear"></div>
200 </div>
201 <div class="crm-section no-label billing_address-section">
202 <div class="content">{$address|nl2br}</div>
203 <div class="clear"></div>
204 </div>
205 </div>
206 {/if}
207 {/if}
208 {if $email}
209 <div class="crm-group contributor_email-group">
210 <div class="header-dark">
211 {ts}Your Email{/ts}
212 </div>
213 <div class="crm-section no-label contributor_email-section">
214 <div class="content">{$email}</div>
215 <div class="clear"></div>
216 </div>
217 </div>
218 {/if}
219 {/if}
220
221 {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *}
222 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
223{crmRegion name="contribution-confirm-billing-block"}
224 {if ($credit_card_number or $bank_account_number)}
225 <div class="crm-group credit_card-group">
9f7f8a50 226 {if $paymentFieldsetLabel}
227 <div class="header-dark">
228 {$paymentFieldsetLabel}
229 </div>
6a488035 230 {/if}
9f7f8a50 231 {if $paymentProcessor.payment_type == 2}
6a488035
TO
232 <div class="display-block">
233 {ts}Account Holder{/ts}: {$account_holder}<br />
234 {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
235 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
236 {ts}Bank Name{/ts}: {$bank_name}<br />
237 </div>
238 {if $contributeMode eq 'direct'}
239 <div class="crm-group debit_agreement-group">
240 <div class="header-dark">
241 {ts}Agreement{/ts}
242 </div>
243 <div class="display-block">
244 {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}
245 </div>
246 </div>
247 {/if}
248 {else}
249 <div class="crm-section no-label credit_card_details-section">
a17a96df 250 <div class="content">{$credit_card_type}</div>
6a488035 251 <div class="content">{$credit_card_number}</div>
9f7f8a50 252 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
6a488035
TO
253 <div class="clear"></div>
254 </div>
255 {/if}
256 </div>
257 {/if}
258{/crmRegion}
259 {/if}
260
261 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"}
262
263 {if $customPost}
a17a96df
DG
264 <fieldset class="label-left crm-profile-view">
265 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
266 </fieldset>
6a488035
TO
267 {/if}
268
269 {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 *}
270 <div class="messages status continue_instructions-section">
271 <p>
272 {if $is_pay_later OR $amount LE 0.0}
273 {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}
274 {else}
275 {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}
276 {/if}
277 </p>
278 </div>
279 {/if}
280
6a488035
TO
281 <div id="crm-submit-buttons" class="crm-submit-buttons">
282 {include file="CRM/common/formButtons.tpl" location="bottom"}
283 </div>
284</div>