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