Corrected thankyou template, see RT#1286518
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / ThankYou.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-thankyou-form-block">
17 {if $thankyou_text}
18 <div id="thankyou_text" class="crm-section thankyou_text-section">
19 {$thankyou_text}
20 </div>
21 {/if}
22
23 {* Show link to Tell a Friend (CRM-2153) *}
24 {if $friendText}
25 <div id="tell-a-friend" class="crm-section friend_link-section">
26 <a href="{$friendURL}" title="{$friendText|escape:'html'}" class="button"><span><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {$friendText}</span></a>
27 </div>{if !$linkText}<br /><br />{/if}
28 {/if}
29 {* Add button for donor to create their own Personal Campaign page *}
30 {if $linkText}
31 <div class="crm-section create_pcp_link-section">
32 <a href="{$linkTextUrl}" title="{$linkText|escape:'html'}" class="button"><span><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {$linkText}</span></a>
33 </div><br /><br />
34 {/if}
35
36 <div class="help">
37 {* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
38 {if $is_pay_later}
39 <div class="bold">{$pay_later_receipt}</div>
40 {if $is_email_receipt}
41 <div>
42 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
43 {ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and to %2.{/ts}
44 {else}
45 {ts 1=$email}An email confirmation with these payment instructions has been sent to %1.{/ts}
46 {/if}
47 </div>
48 {/if}
49 {elseif $isPendingOutcome}
50 <div>{ts 1=$paymentProcessor.name}Your contribution has been submitted for processing. Please print this page for your records.{/ts}</div>
51 {if $is_email_receipt}
52 <div>
53 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
54 {ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed successfully.{/ts}
55 {else}
56 {ts 1=$email}An email receipt will be sent to %1 once the transaction is processed successfully.{/ts}
57 {/if}
58 </div>
59 {/if}
60 {else}
61 <div>{ts}Your transaction has been processed successfully.{/ts}</div>
62 {if $is_email_receipt}
63 <div>
64 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
65 {ts 1=$email 2=$onBehalfEmail}An email receipt has also been sent to %1 and to %2{/ts}
66 {elseif $email}
67 {ts 1=$email}An email receipt has also been sent to %1{/ts}
68 {/if}
69 </div>
70 {/if}
71 {/if}
72 </div>
73 <div class="spacer"></div>
74
75 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="thankContribution"}
76
77 {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
78 <div class="crm-group amount_display-group">
79 {if !$useForMember}
80 <div class="header-dark">
81 {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if}
82 </div>
83 {/if}
84 <div class="display-block">
85 {if !$useForMember}
86 {if $lineItem and $priceSetID}
87 {if !$amount}{assign var="amount" value=0}{/if}
88 {assign var="totalAmount" value=$amount}
89 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
90 {elseif $membership_amount}
91 {$membership_name} {ts}Membership{/ts}: <strong>{$membership_amount|crmMoney}</strong><br />
92 {if $amount}
93 {if !$is_separate_payment}
94 {ts}Contribution Amount{/ts}: <strong>{$amount|crmMoney}</strong><br />
95 {else}
96 {ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
97 {/if}
98 {/if}
99 <strong> -------------------------------------------</strong><br />
100 {ts}Total{/ts}: <strong>{$amount+$membership_amount|crmMoney}</strong><br />
101 {else}
102 {if $totalTaxAmount}
103 {ts}Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney}</strong><br />
104 {/if}
105 {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: <strong>{$amount|crmMoney}{if $amount_level } &ndash; {$amount_level}{/if}</strong>
106 {/if}
107 {/if}
108 {if $receive_date}
109 {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br />
110 {/if}
111 {if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id}
112 {ts}Transaction #{/ts}: {$trxn_id}<br />
113 {/if}
114 {if $membership_trx_id}
115 {ts}Membership Transaction #{/ts}: {$membership_trx_id}
116 {/if}
117
118 {* Recurring contribution / pledge information *}
119 {if $is_recur}
120 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
121 {crmRegion name="contribution-thankyou-recur-membership"}
122 <br />
123 {if $frequency_interval > 1}
124 <strong>{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}</strong>
125 {else}
126 <strong>{ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts}</strong>
127 {/if}
128 <div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})</div>
129 {/crmRegion}
130 {else}
131 {crmRegion name="contribution-thankyou-recur"}
132 {if $installments > 1}
133 {if $frequency_interval > 1}
134 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}This recurring contribution will be automatically processed every %1 %2s for a total %3 installments (including this initial contribution).{/ts}</strong></p>
135 {else}
136 <p><strong>{ts 1=$frequency_unit 2=$installments}This recurring contribution will be automatically processed every %1 for a total %2 installments (including this initial contribution).{/ts}</strong></p>
137 {/if}
138 {else}
139 {if $frequency_interval > 1}
140 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit}This recurring contribution will be automatically processed every %1 %2s.{/ts}</strong></p>
141 {else}
142 <p><strong>{ts 1=$frequency_unit}This recurring contribution will be automatically processed every %1.{/ts}</strong></p>
143 {/if}
144 {/if}
145 <p>
146 {if $is_email_receipt}
147 {ts}You will receive an email receipt which includes information about how to update or cancel this recurring contribution.{/ts}
148 {/if}
149 </p>
150 {/crmRegion}
151 {/if}
152 {/if}
153
154 {if $is_pledge}
155 {if $pledge_frequency_interval GT 1}
156 <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>
157 {else}
158 <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>
159 {/if}
160 <p>
161 {if $is_pay_later}
162 {ts 1=$receiptFromEmail}We will record your initial pledge payment when we receive it from you. 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}
163 {else}
164 {ts 1=$receiptFromEmail}Your initial pledge payment has been processed. You will be able to modify or cancel future pledge payments at any time by contacting us at %1.{/ts}
165 {/if}
166 {if $max_reminders}
167 {ts 1=$initial_reminder_day}We will send you a payment reminder %1 days prior to each scheduled payment date. The reminder will include a link to a page where you can make your payment online.{/ts}
168 {/if}
169 </p>
170 {/if}
171 </div>
172 </div>
173 {/if}
174
175 {if $onbehalfProfile && $onbehalfProfile|@count}
176 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
177 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
178 </div>
179 {/if}
180
181 {if $honoreeProfileFields && $honoreeProfileFields|@count}
182 <div class="crm-group honor_block-group">
183 <div class="header-dark">
184 {$soft_credit_type}
185 </div>
186 <div class="display-block">
187 <div class="label-left crm-section honoree_profile-section">
188 <strong>{$honorName}</strong></br>
189 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
190 </div>
191 </div>
192 </div>
193 {/if}
194
195 {if $customPre}
196 <fieldset class="label-left crm-profile-view">
197 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
198 </fieldset>
199 {/if}
200
201 {if $pcpBlock}
202 <div class="crm-group pcp_display-group">
203 <div class="header-dark">
204 {ts}Contribution Honor Roll{/ts}
205 </div>
206 <div class="display-block">
207 {if $pcp_display_in_roll}
208 {ts}List my contribution{/ts}
209 {if $pcp_is_anonymous}
210 <strong>{ts}anonymously{/ts}.</strong>
211 {else}
212 {ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
213 {if $pcp_personal_note}
214 {ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
215 {else}
216 <strong>{ts}With no personal note{/ts}</strong>
217 {/if}
218 {/if}
219 {else}
220 {ts}Don't list my contribution in the honor roll.{/ts}
221 {/if}
222 <br />
223 </div>
224 </div>
225 {/if}
226
227 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
228 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
229 {if $billingName or $address}
230 <div class="crm-group billing_name_address-group">
231 <div class="header-dark">
232 {ts}Billing Name and Address{/ts}
233 </div>
234 <div class="crm-section no-label billing_name-section">
235 <div class="content">{$billingName}</div>
236 <div class="clear"></div>
237 </div>
238 <div class="crm-section no-label billing_address-section">
239 <div class="content">{$address|nl2br}</div>
240 <div class="clear"></div>
241 </div>
242 </div>
243 {/if}
244 {/if}
245 {if $email}
246 <div class="crm-group contributor_email-group">
247 <div class="header-dark">
248 {ts}Your Email{/ts}
249 </div>
250 <div class="crm-section no-label contributor_email-section">
251 <div class="content">{$email}</div>
252 <div class="clear"></div>
253 </div>
254 </div>
255 {/if}
256 {/if}
257
258 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
259 {crmRegion name="contribution-thankyou-billing-block"}
260 <div class="crm-group credit_card-group">
261 {if $paymentFieldsetLabel}
262 <div class="header-dark">
263 {$paymentFieldsetLabel}
264 </div>
265 {/if}
266 {if $paymentProcessor.payment_type == 2}
267 <div class="display-block">
268 {ts}Account Holder{/ts}: {$account_holder}<br />
269 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
270 {ts}Bank Name{/ts}: {$bank_name}<br />
271 {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
272 </div>
273 {else}
274 <div class="crm-section no-label credit_card_details-section">
275 <div class="content">{$credit_card_type}</div>
276 <div class="content">{$credit_card_number}</div>
277 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
278 <div class="clear"></div>
279 </div>
280 {/if}
281 </div>
282 {/crmRegion}
283 {/if}
284
285 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="thankContribution"}
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 <div id="thankyou_footer" class="contribution_thankyou_footer-section">
294 <p>
295 {$thankyou_footer}
296 </p>
297 </div>
298 {if $isShare}
299 {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture}
300 {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl}
301 {/if}
302 </div>