Merge pull request #13809 from sushantpaste/auto-complete-search
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / Confirm.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {if $action & 1024}
11 {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
12 {/if}
13
14 {include file="CRM/common/TrackingFields.tpl"}
15
16 <div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-confirm-form-block">
17 <div class="help">
18 <p>{ts}Please verify the information below carefully. Click <strong>Go Back</strong> if you need to make changes.{/ts}
19 {$continueText}
20 </p>
21 </div>
22 <div id="crm-submit-buttons" class="crm-submit-buttons">
23 {include file="CRM/common/formButtons.tpl" location="top"}
24 </div>
25 {if $is_pay_later}
26 <div class="bold pay_later_receipt-section">{$pay_later_receipt}</div>
27 {/if}
28
29 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"}
30
31 {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $isDisplayLineItems and $lineItem ) }
32 <div class="crm-group amount_display-group">
33 {if !$useForMember}
34 <div class="header-dark">
35 {if !$membershipBlock AND $amount OR ( $isDisplayLineItems and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if}
36 </div>
37 {/if}
38 <div class="display-block">
39 {if !$useForMember}
40 {if $lineItem and $isDisplayLineItems}
41 {if !$amount}{assign var="amount" value=0}{/if}
42 {assign var="totalAmount" value=$amount}
43 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
44 {elseif $is_separate_payment }
45 {if $amount AND $minimum_fee}
46 {$membership_name} {ts}Membership{/ts}:
47 <strong>{$minimum_fee|crmMoney}</strong>
48 <br/>
49 {ts}Additional Contribution{/ts}:
50 <strong>{$amount|crmMoney}</strong>
51 <br/>
52 <strong> -------------------------------------------</strong>
53 <br/>
54 {ts}Total{/ts}:
55 <strong>{$amount+$minimum_fee|crmMoney}</strong>
56 <br/>
57 {elseif $amount }
58 {ts}Amount{/ts}:
59 <strong>{$amount|crmMoney} {if $amount_level }<span class='crm-price-amount-label'>
60 &ndash; {$amount_level}</span>{/if}</strong>
61 {else}
62 {$membership_name} {ts}Membership{/ts}:
63 <strong>{$minimum_fee|crmMoney}</strong>
64 {/if}
65 {else}
66 {if $totalTaxAmount }
67 {ts 1=$taxTerm}Total %1 Amount{/ts}:
68 <strong>{$totalTaxAmount|crmMoney} </strong>
69 <br/>
70 {/if}
71 {if $amount}
72 {if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}:
73 <strong>{$amount|crmMoney}{if $amount_level }<span class='crm-price-amount-label'>
74 &ndash; {$amount_level}</span>{/if}</strong>
75 {else}
76 {$membership_name} {ts}Membership{/ts}:
77 <strong>{$minimum_fee|crmMoney}</strong>
78 {/if}
79 {/if}
80 {/if}
81
82 {if $is_recur}
83 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
84 {crmRegion name="contribution-confirm-recur-membership"}
85 <br/>
86 <strong>
87 {if $autoRenewOption == 1}
88 {ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts}
89 {elseif $autoRenewOption == 2}
90 {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}
91 {/if}
92 </strong>
93 </p>
94 <div class="description crm-auto-renew-cancel-info">
95 ({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}
96 )
97 </div>
98 {/crmRegion}
99 {else}
100 {crmRegion name="contribution-confirm-recur"}
101 {if $installments}
102 {if $frequency_interval > 1}
103 <p>
104 <strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}I want to contribute this amount every %1 %2s for %3 installments.{/ts}</strong>
105 </p>
106 {else}
107 <p>
108 <strong>{ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts}</strong>
109 </p>
110 {/if}
111 {else}
112 {if $frequency_interval > 1}
113 <p>
114 <strong>{ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts}</strong>
115 </p>
116 {else}
117 <p><strong>{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}</strong></p>
118 {/if}
119 {/if}
120 <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>
121 {/crmRegion}
122 {/if}
123 {/if}
124
125 {if $is_pledge }
126 {if $pledge_frequency_interval GT 1}
127 <p>
128 <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>
129 </p>
130 {else}
131 <p>
132 <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>
133 </p>
134 {/if}
135 {if $is_pay_later}
136 <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>
137 {else}
138 <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>
139 {/if}
140 {/if}
141 </div>
142 </div>
143 {/if}
144
145 {if $onbehalfProfile && $onbehalfProfile|@count}
146 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
147 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
148 </div>
149 {/if}
150
151 {if $honoreeProfileFields && $honoreeProfileFields|@count}
152 <div class="crm-group honor_block-group">
153 <div class="header-dark">
154 {$soft_credit_type}
155 </div>
156 <div class="display-block">
157 <div class="label-left crm-section honoree_profile-section">
158 <strong>{$honorName}</strong></br>
159 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
160 </div>
161 </div>
162 </div>
163 {/if}
164
165 {if $customPre}
166 <fieldset class="label-left crm-profile-view">
167 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
168 </fieldset>
169 {/if}
170
171 {if $pcpBlock}
172 <div class="crm-group pcp_display-group">
173 <div class="header-dark">
174 {ts}Contribution Honor Roll{/ts}
175 </div>
176 <div class="display-block">
177 {if $pcp_display_in_roll}
178 {ts}List my contribution{/ts}
179 {if $pcp_is_anonymous}
180 <strong>{ts}anonymously{/ts}.</strong>
181 {else}
182 {ts}under the name{/ts}:
183 <strong>{$pcp_roll_nickname}</strong>
184 <br/>
185 {if $pcp_personal_note}
186 {ts}With the personal note{/ts}:
187 <strong>{$pcp_personal_note}</strong>
188 {else}
189 <strong>{ts}With no personal note{/ts}</strong>
190 {/if}
191 {/if}
192 {else}
193 {ts}Don't list my contribution in the honor roll.{/ts}
194 {/if}
195 <br/>
196 </div>
197 </div>
198 {/if}
199
200 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
201 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
202 {if $billingName or $address}
203 <div class="crm-group billing_name_address-group">
204 <div class="header-dark">
205 {ts}Billing Name and Address{/ts}
206 </div>
207 <div class="crm-section no-label billing_name-section">
208 <div class="content">{$billingName}</div>
209 <div class="clear"></div>
210 </div>
211 <div class="crm-section no-label billing_address-section">
212 <div class="content">{$address|nl2br}</div>
213 <div class="clear"></div>
214 </div>
215 </div>
216 {/if}
217 {/if}
218 {if $email}
219 <div class="crm-group contributor_email-group">
220 <div class="header-dark">
221 {ts}Your Email{/ts}
222 </div>
223 <div class="crm-section no-label contributor_email-section">
224 <div class="content">{$email}</div>
225 <div class="clear"></div>
226 </div>
227 </div>
228 {/if}
229 {/if}
230
231 {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *}
232 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
233 {crmRegion name="contribution-confirm-billing-block"}
234 {if ($credit_card_number or $bank_account_number)}
235 <div class="crm-group credit_card-group">
236 {if $paymentFieldsetLabel}
237 <div class="header-dark">
238 {$paymentFieldsetLabel}
239 </div>
240 {/if}
241 {if $paymentProcessor.payment_type == 2}
242 <div class="display-block">
243 {ts}Account Holder{/ts}: {$account_holder}<br/>
244 {ts}Bank Account Number{/ts}: {$bank_account_number}<br/>
245 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br/>
246 {ts}Bank Name{/ts}: {$bank_name}<br/>
247 </div>
248 {if $contributeMode eq 'direct'}
249 <div class="crm-group debit_agreement-group">
250 <div class="header-dark">
251 {ts}Agreement{/ts}
252 </div>
253 <div class="display-block">
254 {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}
255 </div>
256 </div>
257 {/if}
258 {else}
259 <div class="crm-section no-label credit_card_details-section">
260 <div class="content">{$credit_card_type}</div>
261 <div class="content">{$credit_card_number}</div>
262 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
263 <div class="clear"></div>
264 </div>
265 {/if}
266 </div>
267 {/if}
268 {/crmRegion}
269 {/if}
270
271 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"}
272
273 {if $customPost}
274 <fieldset class="label-left crm-profile-view">
275 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
276 </fieldset>
277 {/if}
278
279 {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 *}
280 <div class="messages status continue_instructions-section">
281 <p>
282 {if $is_pay_later OR $amount LE 0.0}
283 {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}
284 {else}
285 {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}
286 {/if}
287 </p>
288 </div>
289 {/if}
290
291 <div id="crm-submit-buttons" class="crm-submit-buttons">
292 {include file="CRM/common/formButtons.tpl" location="bottom"}
293 </div>
294 </div>