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