Merge pull request #22233 from colemanw/apiExplorerArgs
[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 {if $frequency_unit eq 'day'}
114 <p><strong>{ts 1=$frequency_interval}I want to contribute this amount every %1 days.{/ts}</strong></p>
115 {elseif $frequency_unit eq 'week'}
116 <p><strong>{ts 1=$frequency_interval}I want to contribute this amount every %1 weeks.{/ts}</strong></p>
117 {elseif $frequency_unit eq 'month'}
118 <p><strong>{ts 1=$frequency_interval}I want to contribute this amount every %1 months.{/ts}</strong></p>
119 {elseif $frequency_unit eq 'year'}
120 <p><strong>{ts 1=$frequency_interval}I want to contribute this amount every %1 years.{/ts}</strong></p>
121 {/if}
122 {else}
123 {if $frequency_unit eq 'day'}
124 <p><strong>{ts}I want to contribute this amount every day.{/ts}</strong></p>
125 {elseif $frequency_unit eq 'week'}
126 <p><strong>{ts}I want to contribute this amount every week.{/ts}</strong></p>
127 {elseif $frequency_unit eq 'month'}
128 <p><strong>{ts}I want to contribute this amount every month.{/ts}</strong></p>
129 {elseif $frequency_unit eq 'year'}
130 <p><strong>{ts}I want to contribute this amount every year.{/ts}</strong></p>
131 {/if}
132 {/if}
133 {/if}
134 <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>
135 {/crmRegion}
136 {/if}
137 {/if}
138
139 {if $is_pledge }
140 {if $pledge_frequency_interval GT 1}
141 <p>
142 <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>
143 </p>
144 {else}
145 <p>
146 <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>
147 </p>
148 {/if}
149 {if $is_pay_later}
150 <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>
151 {else}
152 <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>
153 {/if}
154 {/if}
155 </div>
156 </div>
157 {/if}
158
159 {if $onbehalfProfile && $onbehalfProfile|@count}
160 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
161 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
162 </div>
163 {/if}
164
165 {if $honoreeProfileFields && $honoreeProfileFields|@count}
166 <div class="crm-group honor_block-group">
167 <div class="header-dark">
168 {$soft_credit_type}
169 </div>
170 <div class="display-block">
171 <div class="label-left crm-section honoree_profile-section">
172 <strong>{$honorName}</strong></br>
173 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
174 </div>
175 </div>
176 </div>
177 {/if}
178
179 {if $customPre}
180 <fieldset class="label-left crm-profile-view">
181 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
182 </fieldset>
183 {/if}
184
185 {if $pcpBlock}
186 <div class="crm-group pcp_display-group">
187 <div class="header-dark">
188 {ts}Contribution Honor Roll{/ts}
189 </div>
190 <div class="display-block">
191 {if $pcp_display_in_roll}
192 {ts}List my contribution{/ts}
193 {if $pcp_is_anonymous}
194 <strong>{ts}anonymously{/ts}.</strong>
195 {else}
196 {ts}under the name{/ts}:
197 <strong>{$pcp_roll_nickname}</strong>
198 <br/>
199 {if $pcp_personal_note}
200 {ts}With the personal note{/ts}:
201 <strong>{$pcp_personal_note}</strong>
202 {else}
203 <strong>{ts}With no personal note{/ts}</strong>
204 {/if}
205 {/if}
206 {else}
207 {ts}Don't list my contribution in the honor roll.{/ts}
208 {/if}
209 <br/>
210 </div>
211 </div>
212 {/if}
213
214 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
215 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
216 {if $billingName or $address}
217 <div class="crm-group billing_name_address-group">
218 <div class="header-dark">
219 {ts}Billing Name and Address{/ts}
220 </div>
221 <div class="crm-section no-label billing_name-section">
222 <div class="content">{$billingName}</div>
223 <div class="clear"></div>
224 </div>
225 <div class="crm-section no-label billing_address-section">
226 <div class="content">{$address|nl2br}</div>
227 <div class="clear"></div>
228 </div>
229 </div>
230 {/if}
231 {/if}
232 {if $email}
233 <div class="crm-group contributor_email-group">
234 <div class="header-dark">
235 {ts}Your Email{/ts}
236 </div>
237 <div class="crm-section no-label contributor_email-section">
238 <div class="content">{$email}</div>
239 <div class="clear"></div>
240 </div>
241 </div>
242 {/if}
243 {/if}
244
245 {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *}
246 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
247 {crmRegion name="contribution-confirm-billing-block"}
248 {if ($credit_card_number or $bank_account_number)}
249 <div class="crm-group credit_card-group">
250 {if $paymentFieldsetLabel}
251 <div class="header-dark">
252 {$paymentFieldsetLabel}
253 </div>
254 {/if}
255 {if $paymentProcessor.payment_type == 2}
256 <div class="display-block">
257 {ts}Account Holder{/ts}: {$account_holder}<br/>
258 {ts}Bank Account Number{/ts}: {$bank_account_number}<br/>
259 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br/>
260 {ts}Bank Name{/ts}: {$bank_name}<br/>
261 </div>
262 {if $contributeMode eq 'direct'}
263 <div class="crm-group debit_agreement-group">
264 <div class="header-dark">
265 {ts}Agreement{/ts}
266 </div>
267 <div class="display-block">
268 {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}
269 </div>
270 </div>
271 {/if}
272 {else}
273 <div class="crm-section no-label credit_card_details-section">
274 <div class="content">{$credit_card_type}</div>
275 <div class="content">{$credit_card_number}</div>
276 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
277 <div class="clear"></div>
278 </div>
279 {/if}
280 </div>
281 {/if}
282 {/crmRegion}
283 {/if}
284
285 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"}
286
287 {if $customPost}
288 <fieldset class="label-left crm-profile-view">
289 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
290 </fieldset>
291 {/if}
292
293 {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 *}
294 <div class="messages status continue_instructions-section">
295 <p>
296 {if $is_pay_later OR $amount LE 0.0}
297 {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}
298 {else}
299 {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}
300 {/if}
301 </p>
302 </div>
303 {/if}
304
305 <div id="crm-submit-buttons" class="crm-submit-buttons">
306 {include file="CRM/common/formButtons.tpl" location="bottom"}
307 </div>
308 </div>