Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git] / templates / CRM / Event / Form / Registration / 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/Event/Form/Registration/PreviewHeader.tpl"}
12 {/if}
13
14 {include file="CRM/common/TrackingFields.tpl"}
15
16 <div class="crm-event-id-{$event.id} crm-block crm-event-thankyou-form-block">
17 {* Don't use "normal" thank-you message for Waitlist and Approval Required registrations - since it will probably not make sense for those situations. dgg *}
18 {if $event.thankyou_text AND (not $isOnWaitlist AND not $isRequireApproval)}
19 <div id="intro_text" class="crm-section event_thankyou_text-section">
20 <p>
21 {$event.thankyou_text}
22 </p>
23 </div>
24 {/if}
25
26 {* Show link to Tell a Friend (CRM-2153) *}
27 {if $friendText}
28 <div id="tell-a-friend" class="crm-section tell_friend_link-section">
29 <a href="{$friendURL}" title="{$friendText|escape:'html'}" class="button"><span>&raquo; {$friendText}</span></a>
30 </div><br /><br />
31 {/if}
32
33 {* Add button for donor to create their own Personal Campaign page *}
34 {if $pcpLink}
35 <div class="crm-section create_pcp_link-section">
36 <a href="{$pcpLink}" title="{$pcpLinkText|escape:'html'}" class="button"><span>&raquo; {$pcpLinkText}</span></a>
37 </div><br /><br />
38 {/if}
39
40 <div class="help">
41 {if $isOnWaitlist}
42 <p>
43 <span class="bold">{ts}You have been added to the WAIT LIST for this event.{/ts}</span>
44 {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
45 </p>
46 {elseif $isRequireApproval}
47 <p>
48 <span class="bold">{ts}Your registration has been submitted.{/ts}
49 {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</span>
50 </p>
51 {elseif $is_pay_later and $paidEvent and !$isAmountzero}
52 <div class="bold">{$pay_later_receipt}</div>
53 {if $is_email_confirm}
54 <p>{ts 1=$email}An email with event details has been sent to %1.{/ts}</p>
55 {/if}
56 {* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
57 {elseif $contributeMode EQ 'notify' and $paidEvent}
58 <p>{ts 1=$paymentProcessor.name}Your registration payment has been submitted to %1 for processing.{/ts}</p>
59 {if $is_email_confirm}
60 <p>{ts 1=$email}A registration confirmation email will be sent to %1 once the transaction is processed successfully.{/ts}</p>
61 {/if}
62 {else}
63 <p>{ts}Your registration has been processed successfully.{/ts}</p>
64 {if $is_email_confirm}
65 <p>{ts 1=$email}A registration confirmation email has also been sent to %1{/ts}</p>
66 {/if}
67 {/if}
68 </div>
69 <div class="spacer"></div>
70
71 <div class="crm-group event_info-group">
72 <div class="header-dark">
73 {ts}Event Information{/ts}
74 </div>
75 <div class="display-block">
76 {include file="CRM/Event/Form/Registration/EventInfoBlock.tpl" context="ThankYou"}
77 </div>
78 </div>
79
80 {if $paidEvent && !$isRequireApproval && !$isOnWaitlist}
81 <div class="crm-group event_fees-group">
82 <div class="header-dark">
83 {$event.fee_label}
84 </div>
85 {if $lineItem}
86 {include file="CRM/Price/Page/LineItem.tpl" context="Event"}
87 {elseif $amount || $amount == 0}
88 <div class="crm-section no-label amount-item-section">
89 {foreach from= $finalAmount item=amount key=level}
90 <div class="content">
91 {$amount.amount|crmMoney}&nbsp;&nbsp;{$amount.label}
92 </div>
93 <div class="clear"></div>
94 {/foreach}
95 </div>
96 {if $totalTaxAmount}
97 <div class="content bold">{ts}Tax Total{/ts}:&nbsp;&nbsp;{$totalTaxAmount|crmMoney}</div>
98 <div class="clear"></div>
99 {/if}
100 {if $totalAmount}
101 <div class="crm-section no-label total-amount-section">
102 <div class="content bold">{ts}Event Total{/ts}:&nbsp;&nbsp;{$totalAmount|crmMoney}</div>
103 <div class="clear"></div>
104 </div>
105
106 {if $hookDiscount.message}
107 <div class="crm-section hookDiscount-section">
108 <em>({$hookDiscount.message})</em>
109 </div>
110 {/if}
111 {/if}
112 {/if}
113
114 {if $receive_date}
115 <div class="crm-section no-label receive_date-section">
116 <div class="content bold">{ts}Transaction Date{/ts}: {$receive_date|crmDate}</div>
117 <div class="clear"></div>
118 </div>
119 {/if}
120 {if $contributeMode ne 'notify' AND $trxn_id}
121 <div class="crm-section no-label trxn_id-section">
122 <div class="content bold">{ts}Transaction #{/ts}: {$trxn_id}</div>
123 <div class="clear"></div>
124 </div>
125 {/if}
126 </div>
127
128 {elseif $participantInfo}
129 <div class="crm-group participantInfo-group">
130 <div class="header-dark">
131 {ts}Additional Participant Email(s){/ts}
132 </div>
133 <div class="crm-section no-label participant_info-section">
134 <div class="content">
135 {foreach from=$participantInfo item=mail key=no}
136 <strong>{$mail}</strong><br />
137 {/foreach}
138 </div>
139 <div class="clear"></div>
140 </div>
141 </div>
142 {/if}
143
144 {if $event.participant_role neq 'Attendee' and $defaultRole}
145 <div class="crm-group participant_role-group">
146 <div class="header-dark">
147 {ts}Participant Role{/ts}
148 </div>
149 <div class="crm-section no-label participant_role-section">
150 <div class="content">
151 {$event.participant_role}
152 </div>
153 <div class="clear"></div>
154 </div>
155 </div>
156 {/if}
157
158 {include file="CRM/Event/Form/Registration/DisplayProfile.tpl"}
159 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $paidEvent and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
160 <div class="crm-group billing_name_address-group">
161 <div class="header-dark">
162 {ts}Billing Name and Address{/ts}
163 </div>
164 <div class="crm-section no-label billing_name-section">
165 <div class="content">{$billingName}</div>
166 <div class="clear"></div>
167 </div>
168 <div class="crm-section no-label billing_address-section">
169 <div class="content">{$address|nl2br}</div>
170 <div class="clear"></div>
171 </div>
172 </div>
173 {/if}
174
175 {if $credit_card_type}
176 {crmRegion name="event-thankyou-billing-block"}
177 <div class="crm-group credit_card-group">
178 <div class="header-dark">
179 {ts}Credit Card Information{/ts}
180 </div>
181 <div class="crm-section no-label credit_card_details-section">
182 <div class="content">{$credit_card_type}</div>
183 <div class="content">{$credit_card_number}</div>
184 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
185 <div class="clear"></div>
186 </div>
187 </div>
188 {/crmRegion}
189 {/if}
190
191 {if $event.thankyou_footer_text}
192 <div id="footer_text" class="crm-section event_thankyou_footer-section">
193 <p>{$event.thankyou_footer_text}</p>
194 </div>
195 {/if}
196
197 <div class="action-link section event_info_link-section">
198 <a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}">&raquo; {ts 1=$event.event_title}Back to "%1" event information{/ts}</a>
199 </div>
200
201 {if $event.is_public }
202 {include file="CRM/Event/Page/iCalLinks.tpl"}
203 {/if}
204 {if $event.is_share}
205 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=1 fe=1 h=1}{/capture}
206 {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl}
207 {/if}
208 </div>