{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}

{$greeting},

{/if} {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}

{$event.confirm_email_text|htmlize}

{/if} {if !empty($isOnWaitlist)}

{ts}You have been added to the WAIT LIST for this event.{/ts}

{if !empty($isPrimary)}

{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}

{/if} {elseif !empty($isRequireApproval)}

{ts}Your registration has been submitted.{/ts}

{if !empty($isPrimary)}

{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}

{/if} {elseif $is_pay_later}

{$pay_later_receipt}

{* FIXME: this might be text rather than HTML *} {/if}
{if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)} {/if} {if !empty($isShowLocation)} {/if} {if !empty($location.phone.1.phone) || !empty($location.email.1.email)} {foreach from=$location.phone item=phone} {if $phone.phone} {/if} {/foreach} {foreach from=$location.email item=eventEmail} {if $eventEmail.email} {/if} {/foreach} {/if} {if !empty($event.is_public)} {/if} {if $email} {/if} {if !empty($event.is_monetary)} {if !empty($lineItem)} {foreach from=$lineItem item=value key=priceset} {if $value neq 'skip'} {if !empty($isPrimary)} {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} {/if} {/if} {/if} {/foreach} {if !empty($dataArray)} {if $totalAmount and $totalTaxAmount} {/if} {foreach from=$dataArray item=value key=priceset} {if $priceset || $priceset == 0} {else} {/if} {/foreach} {/if} {/if} {if !empty($amount) && !$lineItem} {foreach from=$amount item=amnt key=level} {/foreach} {/if} {if $totalTaxAmount} {/if} {if !empty($isPrimary)} {if isset($balanceAmount)} {/if} {if !empty($pricesetFieldsCount) } {/if} {if $is_pay_later} {/if} {if $register_date} {/if} {if !empty($receive_date)} {/if} {if !empty($financialTypeName)} {/if} {if !empty($trxn_id)} {/if} {if !empty($paidBy)} {/if} {if !empty($checkNumber)} {/if} {if !empty($billingName)} {/if} {if !empty($credit_card_type)} {/if} {/if} {/if} {* End of conditional section for Paid events *} {if !empty($customPre)} {foreach from=$customPre item=value key=customName} {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)} {/if} {/foreach} {/if} {if !empty($customPost)} {foreach from=$customPost item=value key=customName} {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)} {/if} {/foreach} {/if} {if !empty($customProfile)} {foreach from=$customProfile item=value key=customName} {foreach from=$value item=val key=field} {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'} {foreach from=$val item=v key=f} {/foreach} {/if} {/foreach} {/foreach} {/if} {if !empty($customGroup)} {foreach from=$customGroup item=value key=customName} {foreach from=$value item=v key=n} {/foreach} {/foreach} {/if}
{ts}Event Information and Location{/ts}
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts} {$event.participant_role}
{$location.address.1.display|nl2br}
{ts}Event Contacts:{/ts}
{if $phone.phone_type} {$phone.phone_type_display} {else} {ts}Phone{/ts} {/if} {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{ts}Email{/ts} {$eventEmail.email}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts}
{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts}
{ts}Registered Email{/ts}
{$email}
{if !empty($event.fee_label)}{$event.fee_label}{/if}
{ts 1=$priceset+1}Participant %1{/ts}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} {if !empty($dataArray)} {/if} {if !empty($pricesetFieldsCount) }{/if} {foreach from=$value item=line} {if !empty($dataArray)} {if $line.tax_rate || $line.tax_amount != ""} {else} {/if} {/if} {if !empty($pricesetFieldsCount) } {/if} {/foreach}
{ts}Item{/ts} {ts}Qty{/ts} {ts}Each{/ts}{ts}SubTotal{/ts} {ts}Tax Rate{/ts} {ts}Tax Amount{/ts}{ts}Total{/ts}{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description|truncate:30:"..."}
{/if}
{$line.qty} {$line.unit_price|crmMoney} {$line.unit_price*$line.qty|crmMoney} {$line.tax_rate|string_format:"%.2f"}% {$line.tax_amount|crmMoney} {$line.line_total+$line.tax_amount|crmMoney} {$line.participant_count}
{ts}Amount Before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney}
 {$taxTerm} {$priceset|string_format:"%.2f"}%  {$value|crmMoney:$currency} {ts}No{/ts} {$taxTerm}  {$value|crmMoney:$currency}
{$amnt.amount|crmMoney} {$amnt.label}
{ts}Total Tax Amount{/ts} {$totalTaxAmount|crmMoney:$currency}
{if isset($balanceAmount)} {ts}Total Paid{/ts} {else} {ts}Total Amount{/ts} {/if} {if !empty($totalAmount)}{$totalAmount|crmMoney}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
{ts}Balance{/ts} {$balanceAmount|crmMoney}
{ts}Total Participants{/ts} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} {if $pcount neq 'skip'} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} {if $lineItemCount < 1 } assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} {/if} {/foreach} {$count}
{$pay_later_receipt}
{ts}Registration Date{/ts} {$register_date|crmDate}
{ts}Transaction Date{/ts} {$receive_date|crmDate}
{ts}Financial Type{/ts} {$financialTypeName}
{ts}Transaction #{/ts} {$trxn_id}
{ts}Paid By{/ts} {$paidBy}
{ts}Check Number{/ts} {$checkNumber}
{ts}Billing Name and Address{/ts}
{$billingName}
{$address|nl2br}
{ts}Credit Card Information{/ts}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
{$customPre_grouptitle}
{$customName} {$value}
{$customPost_grouptitle}
{$customName} {$value}
{ts 1=$customName+1}Participant Information - Participant %1{/ts}
{if $field eq 'additionalCustomPre'} {$additionalCustomPre_grouptitle} {else} {$additionalCustomPost_grouptitle} {/if}
{$f} {$v}
{$customName}
{$n} {$v}