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