CRM-13965-qa-fixes : fix for participant status not getting changed for credit card...
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_html.tpl
CommitLineData
7cdb890a
PJ
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title></title>
6</head>
7<body>
8
9{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
10{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
11{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
820fbcfb
PJ
12{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture}
13{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture}
7cdb890a
PJ
14
15<p>Dear {$contactDisplayName}</p>
16<center>
17 <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
18
19 <!-- BEGIN HEADER -->
20 <!-- You can add table row(s) here with logo or other header elements -->
21 <!-- END HEADER -->
22
23 <!-- BEGIN CONTENT -->
24
25 <tr>
26 <td>
27 {if $paymentConfig.confirm_email_text}
28 <p>{$paymentConfig.confirm_email_text|htmlize}</p>
29 {elseif $isRefund}
30 <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>
31 {else}
32 <p>{ts}A payment has been received.{/ts}</p>
33 {/if}
34 <p>{ts}Please print this confirmation for your records.{/ts}</p>
35 </td>
36 </tr>
820fbcfb
PJ
37 <tr>
38 <td>
39 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
7cdb890a
PJ
40 {if $isRefund}
41 <tr>
42 <th {$headerStyle}>{ts}Refund Details{/ts}</th>
43 </tr>
44 <tr>
45 <td {$labelStyle}>
46 {ts}Total Fees{/ts}
47 </td>
48 <td {$valueStyle}>
49 {$totalAmount|crmMoney}
50 </td>
51 <td {$labelStyle}>
52 {ts}You Paid{/ts}
53 </td>
54 <td {$valueStyle}>
55 {$totalPaid|crmMoney}
56 </td>
57 <td {$labelStyle}>
58 {ts}Refund Amount{/ts}
59 </td>
60 <td {$valueStyle}>
61 {$refundAmount|crmMoney}
62 <td>
63 </tr>
64 {else}
65 <tr>
66 <th {$headerStyle}>{ts}Payment Details{/ts}</th>
67 </tr>
68 <tr>
69 <td {$labelStyle}>
70 {ts}{if $component eq 'event'}Total Fees{/if}{/ts}
71 </td>
72 <td {$valueStyle}>
73 {$totalAmount|crmMoney}
74 </td>
820fbcfb
PJ
75 </tr>
76 <tr>
7cdb890a
PJ
77 <td {$labelStyle}>
78 {ts}This Payment Amount{/ts}
79 </td>
80 <td {$valueStyle}>
81 {$paymentAmount|crmMoney}
82 </td>
820fbcfb
PJ
83 </tr>
84 <tr>
7cdb890a
PJ
85 <td {$labelStyle}>
86 {ts}Balance Owed{/ts}
87 </td>
820fbcfb 88 <td {$valueStyle}>
7cdb890a
PJ
89 {$amountOwed|crmMoney}
90 </td> {* This will be zero after final payment. *}
820fbcfb
PJ
91 </tr>
92 <tr> <td {$emptyBlockStyle}></td>
93 <td {$emptyBlockValueStyle}></td></tr>
7cdb890a 94 {if $paymentsComplete}
820fbcfb 95 <tr>
7cdb890a
PJ
96 <td colspan='2' {$valueStyle}>
97 {ts}Thank-you. This completes your payment for {if $component eq 'event'}{$event.event_title}{/if}.{/ts}
98 </td>
820fbcfb 99 </tr>
7cdb890a 100 {/if}
7cdb890a
PJ
101 {/if}
102 {if $receive_date}
103 <tr>
104 <td {$labelStyle}>
105 {ts}Transaction Date{/ts}
106 </td>
107 <td {$valueStyle}>
108 {$receive_date|crmDate}
109 </td>
110 </tr>
111 {/if}
112 {if $trxn_id}
113 <tr>
114 <td {$labelStyle}>
115 {ts}Transaction #{/ts}
116 </td>
117 <td {$valueStyle}>
118 {$trxn_id}
119 </td>
120 </tr>
121 {/if}
122 {if $paidBy}
123 <tr>
124 <td {$labelStyle}>
125 {ts}Paid By{/ts}
126 </td>
127 <td {$valueStyle}>
128 {$paidBy}
129 </td>
130 </tr>
131 {/if}
132 {if $checkNumber}
133 <tr>
134 <td {$labelStyle}>
135 {ts}Check Number{/ts}
136 </td>
137 <td {$valueStyle}>
138 {$checkNumber}
139 </td>
140 </tr>
141 {/if}
820fbcfb
PJ
142 </table>
143 </td>
144 </tr>
7cdb890a
PJ
145 <tr>
146 <td>
147 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
820fbcfb 148 {if $contributeMode eq 'direct' and !$isAmountzero}
7cdb890a
PJ
149 <tr>
150 <th {$headerStyle}>
151 {ts}Billing Name and Address{/ts}
152 </th>
153 </tr>
154 <tr>
155 <td colspan="2" {$valueStyle}>
156 {$billingName}<br />
157 {$address|nl2br}
158 </td>
159 </tr>
160 {/if}
161 {if $contributeMode eq'direct' and !$isAmountzero}
162 <tr>
163 <th {$headerStyle}>
164 {ts}Credit Card Information{/ts}
165 </th>
166 </tr>
167 <tr>
168 <td colspan="2" {$valueStyle}>
169 {$credit_card_type}<br />
170 {$credit_card_number}<br />
ad96d702 171 {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
7cdb890a
PJ
172 </td>
173 </tr>
174 {/if}
175 {if $component eq 'event'}
176 <tr>
177 <th {$headerStyle}>
178 {ts}Event Information and Location{/ts}
179 </th>
180 </tr>
181 <tr>
182 <td colspan="2" {$valueStyle}>
183 {$event.event_title}<br />
184 {$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}
185 </td>
186 </tr>
187
188 {if $event.participant_role neq 'Attendee' and $defaultRole}
189 <tr>
190 <td {$labelStyle}>
191 {ts}Participant Role{/ts}
192 </td>
193 <td {$valueStyle}>
194 {$event.participant_role}
195 </td>
196 </tr>
197 {/if}
198
199 {if $isShowLocation}
200 <tr>
201 <td colspan="2" {$valueStyle}>
202 {if $location.address.1.name}
203 {$location.address.1.name}<br />
204 {/if}
205 {if $location.address.1.street_address}
206 {$location.address.1.street_address}<br />
207 {/if}
208 {if $location.address.1.supplemental_address_1}
209 {$location.address.1.supplemental_address_1}<br />
210 {/if}
211 {if $location.address.1.supplemental_address_2}
212 {$location.address.1.supplemental_address_2}<br />
213 {/if}
214 {if $location.address.1.city}
215 {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
216 {/if}
217 </td>
218 </tr>
219 {/if}
220
221 {if $location.phone.1.phone || $location.email.1.email}
222 <tr>
223 <td colspan="2" {$labelStyle}>
224 {ts}Event Contacts:{/ts}
225 </td>
226 </tr>
227 {foreach from=$location.phone item=phone}
228 {if $phone.phone}
229 <tr>
230 <td {$labelStyle}>
231 {if $phone.phone_type}
232 {$phone.phone_type_display}
233 {else}
234 {ts}Phone{/ts}
235 {/if}
236 </td>
237 <td {$valueStyle}>
238 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
239 </td>
240 </tr>
241 {/if}
242 {/foreach}
243 {foreach from=$location.email item=eventEmail}
244 {if $eventEmail.email}
245 <tr>
246 <td {$labelStyle}>
247 {ts}Email{/ts}
248 </td>
249 <td {$valueStyle}>
250 {$eventEmail.email}
251 </td>
252 </tr>
253 {/if}
254 {/foreach}
255 {/if} {*phone block close*}
256 {/if}
257 </table>
258 </td>
259 </tr>
260
261 </table>
262 </center>
263
264 </body>
265</html>