clean up fixes for batch 5
[civicrm-core.git] / CRM / Upgrade / 3.3.beta2.msg_template / message_templates / event_online_receipt_text.tpl
1 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
2 {$event.confirm_email_text}
3 {/if}
4
5 {if $isOnWaitlist}
6 ==========================================================={if $pricesetFieldsCount }===================={/if}
7
8 {ts}You have been added to the WAIT LIST for this event.{/ts}
9
10 {if $isPrimary}
11 {ts}If space becomes available you will receive an email with
12 a link to a web page where you can complete your registration.{/ts}
13 {/if}
14 ==========================================================={if $pricesetFieldsCount }===================={/if}
15
16 {elseif $isRequireApproval}
17 ==========================================================={if $pricesetFieldsCount }===================={/if}
18
19 {ts}Your registration has been submitted.{/ts}
20
21 {if $isPrimary}
22 {ts}Once your registration has been reviewed, you will receive
23 an email with a link to a web page where you can complete the
24 registration process.{/ts}
25
26 {/if}
27 ==========================================================={if $pricesetFieldsCount }===================={/if}
28
29 {elseif $is_pay_later}
30
31 ==========================================================={if $pricesetFieldsCount }===================={/if}
32
33 {$pay_later_receipt}
34 ==========================================================={if $pricesetFieldsCount }===================={/if}
35
36 {else}
37
38 {ts}Please print this confirmation for your records.{/ts}
39 {/if}
40
41
42 ==========================================================={if $pricesetFieldsCount }===================={/if}
43
44 {ts}Event Information and Location{/ts}
45
46 ==========================================================={if $pricesetFieldsCount }===================={/if}
47
48 {$event.event_title}
49 {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
50
51 {if $event.participant_role neq 'Attendee' and $defaultRole}
52 {ts}Participant Role{/ts}: {$event.participant_role}
53 {/if}
54
55 {if $isShowLocation}
56 {if $location.address.1.name}
57
58 {$location.address.1.name}
59 {/if}
60 {if $location.address.1.street_address}{$location.address.1.street_address}
61 {/if}
62 {if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
63 {/if}
64 {if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
65 {/if}
66 {if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
67 {/if}
68
69 {/if}{*End of isShowLocation condition*}
70
71 {if $location.phone.1.phone || $location.email.1.email}
72
73 {ts}Event Contacts:{/ts}
74 {foreach from=$location.phone item=phone}
75 {if $phone.phone}
76
77 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
78 {/foreach}
79 {foreach from=$location.email item=eventEmail}
80 {if $eventEmail.email}
81
82 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
83 {/if}
84
85 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
86 {ts}Download iCalendar File:{/ts} {$icalFeed}
87 {if $email}
88
89 ==========================================================={if $pricesetFieldsCount }===================={/if}
90
91 {ts}Registered Email{/ts}
92
93 ==========================================================={if $pricesetFieldsCount }===================={/if}
94
95 {$email}
96 {/if}
97 {if $event.is_monetary} {* This section for Paid events only.*}
98
99 ==========================================================={if $pricesetFieldsCount }===================={/if}
100
101 {$event.fee_label}
102 ==========================================================={if $pricesetFieldsCount }===================={/if}
103
104 {if $lineItem}{foreach from=$lineItem item=value key=priceset}
105
106 {if $value neq 'skip'}
107 {if $isPrimary}
108 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
109 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
110
111 {/if}
112 {/if}
113 -----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
114
115 {capture assign=ts_item}{ts}Item{/ts}{/capture}
116 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
117 {capture assign=ts_each}{ts}Each{/ts}{/capture}
118 {capture assign=ts_total}{ts}Total{/ts}{/capture}
119 {if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
120 {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
121 -----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
122
123 {foreach from=$value item=line}
124 {if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
125 {capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"}{$ts_participant_count|string_format:"%10s"}
126 {/foreach}
127 {/if}
128 {/foreach}
129 {/if}
130 {if $amount && !$lineItem}
131 {foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
132 {/foreach}
133 {/if}
134 {if $isPrimary }
135
136 {ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
137
138 {if $pricesetFieldsCount }
139 {assign var="count" value= 0}
140 {foreach from=$lineItem item=pcount}
141 {assign var="lineItemCount" value=0}
142 {if $pcount neq 'skip'}
143 {foreach from=$pcount item=p_count}
144 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
145 {/foreach}
146 {if $lineItemCount < 1 }
147 {assign var="lineItemCount" value=1}
148 {/if}
149 {assign var="count" value=$count+$lineItemCount}
150 {/if}
151 {/foreach}
152
153 {ts}Total Participants{/ts}: {$count}
154 {/if}
155
156 {if $is_pay_later }
157
158 ==========================================================={if $pricesetFieldsCount }===================={/if}
159
160 {$pay_later_receipt}
161 ==========================================================={if $pricesetFieldsCount }===================={/if}
162
163 {/if}
164
165 {if $register_date}
166 {ts}Registration Date{/ts}: {$register_date|crmDate}
167 {/if}
168 {if $receive_date}
169 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
170 {/if}
171 {if $contributionTypeName}
172 {ts}Contribution Type{/ts}: {$contributionTypeName}
173 {/if}
174 {if $trxn_id}
175 {ts}Transaction #{/ts}: {$trxn_id}
176 {/if}
177 {if $paidBy}
178 {ts}Paid By{/ts}: {$paidBy}
179 {/if}
180 {if $checkNumber}
181 {ts}Check Number{/ts}: {$checkNumber}
182 {/if}
183 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
184
185 ==========================================================={if $pricesetFieldsCount }===================={/if}
186
187 {ts}Billing Name and Address{/ts}
188
189 ==========================================================={if $pricesetFieldsCount }===================={/if}
190
191 {$billingName}
192 {$address}
193 {/if}
194
195 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
196 ==========================================================={if $pricesetFieldsCount }===================={/if}
197
198 {ts}Credit Card Information{/ts}
199
200 ==========================================================={if $pricesetFieldsCount }===================={/if}
201
202 {$credit_card_type}
203 {$credit_card_number}
204 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
205 {/if}
206 {/if}
207 {/if} {* End of conditional section for Paid events *}
208
209 {if $customPre}
210 ==========================================================={if $pricesetFieldsCount }===================={/if}
211
212 {$customPre_grouptitle}
213 ==========================================================={if $pricesetFieldsCount }===================={/if}
214
215 {foreach from=$customPre item=value key=customName}
216 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
217 {$customName}: {$value}
218 {/if}
219 {/foreach}
220 {/if}
221
222 {if $customPost}
223 ==========================================================={if $pricesetFieldsCount }===================={/if}
224
225 {$customPost_grouptitle}
226 ==========================================================={if $pricesetFieldsCount }===================={/if}
227
228 {foreach from=$customPost item=value key=customName}
229 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
230 {$customName}: {$value}
231 {/if}
232 {/foreach}
233 {/if}
234 {if $customProfile}
235
236 {foreach from=$customProfile item=value key=customName}
237 ==========================================================={if $pricesetFieldsCount }===================={/if}
238
239 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
240
241 ==========================================================={if $pricesetFieldsCount }===================={/if}
242
243 {foreach from=$value item=val key=field}
244 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost' }
245 {if $field eq 'additionalCustomPre' }
246 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
247
248 {$additionalCustomPre_grouptitle}
249 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
250
251 {else}
252 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
253
254 {$additionalCustomPost_grouptitle}
255 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
256
257 {/if}
258 {foreach from=$val item=v key=f}
259 {$f}: {$v}
260 {/foreach}
261 {/if}
262 {/foreach}
263 {/foreach}
264 {/if}
265 {if $customGroup}
266 {foreach from=$customGroup item=value key=customName}
267 =========================================================={if $pricesetFieldsCount }===================={/if}
268
269 {$customName}
270 =========================================================={if $pricesetFieldsCount }===================={/if}
271
272 {foreach from=$value item=v key=n}
273 {$n}: {$v}
274 {/foreach}
275 {/foreach}
276 {/if}