Merge pull request #10080 from agileware/CRM-20360
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_html.tpl
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}
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}
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 $isRefund}
28 <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>
29 {else}
30 <p>{ts}A payment has been received.{/ts}</p>
31 {/if}
32 <p>{ts}Please print this confirmation for your records.{/ts}</p>
33 </td>
34 </tr>
35 <tr>
36 <td>
37 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
38 {if $isRefund}
39 <tr>
40 <th {$headerStyle}>{ts}Refund Details{/ts}</th>
41 </tr>
42 <tr>
43 <td {$labelStyle}>
44 {ts}Total Amount{/ts}
45 </td>
46 <td {$valueStyle}>
47 {$totalAmount|crmMoney}
48 </td>
49 </tr>
50 <tr>
51 <td {$labelStyle}>
52 {ts}You Paid{/ts}
53 </td>
54 <td {$valueStyle}>
55 {$totalPaid|crmMoney}
56 </td>
57 </tr>
58 <tr>
59 <td {$labelStyle}>
60 {ts}Refund Amount{/ts}
61 </td>
62 <td {$valueStyle}>
63 {$refundAmount|crmMoney}
64 <td>
65 </tr>
66 {else}
67 <tr>
68 <th {$headerStyle}>{ts}Payment Details{/ts}</th>
69 </tr>
70 <tr>
71 <td {$labelStyle}>
72 {ts}Total Amount{/ts}
73 </td>
74 <td {$valueStyle}>
75 {$totalAmount|crmMoney}
76 </td>
77 </tr>
78 <tr>
79 <td {$labelStyle}>
80 {ts}This Payment Amount{/ts}
81 </td>
82 <td {$valueStyle}>
83 {$paymentAmount|crmMoney}
84 </td>
85 </tr>
86 <tr>
87 <td {$labelStyle}>
88 {ts}Balance Owed{/ts}
89 </td>
90 <td {$valueStyle}>
91 {$amountOwed|crmMoney}
92 </td> {* This will be zero after final payment. *}
93 </tr>
94 <tr> <td {$emptyBlockStyle}></td>
95 <td {$emptyBlockValueStyle}></td></tr>
96 {if $paymentsComplete}
97 <tr>
98 <td colspan='2' {$valueStyle}>
99 {ts}Thank you for completing payment.{/ts}
100 </td>
101 </tr>
102 {/if}
103 {/if}
104 {if $receive_date}
105 <tr>
106 <td {$labelStyle}>
107 {ts}Transaction Date{/ts}
108 </td>
109 <td {$valueStyle}>
110 {$receive_date|crmDate}
111 </td>
112 </tr>
113 {/if}
114 {if $trxn_id}
115 <tr>
116 <td {$labelStyle}>
117 {ts}Transaction #{/ts}
118 </td>
119 <td {$valueStyle}>
120 {$trxn_id}
121 </td>
122 </tr>
123 {/if}
124 {if $paidBy}
125 <tr>
126 <td {$labelStyle}>
127 {ts}Paid By{/ts}
128 </td>
129 <td {$valueStyle}>
130 {$paidBy}
131 </td>
132 </tr>
133 {/if}
134 {if $checkNumber}
135 <tr>
136 <td {$labelStyle}>
137 {ts}Check Number{/ts}
138 </td>
139 <td {$valueStyle}>
140 {$checkNumber}
141 </td>
142 </tr>
143 {/if}
144 </table>
145 </td>
146 </tr>
147 <tr>
148 <td>
149 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
150 {if $contributeMode eq 'direct' and !$isAmountzero}
151 <tr>
152 <th {$headerStyle}>
153 {ts}Billing Name and Address{/ts}
154 </th>
155 </tr>
156 <tr>
157 <td colspan="2" {$valueStyle}>
158 {$billingName}<br />
159 {$address|nl2br}
160 </td>
161 </tr>
162 {/if}
163 {if $contributeMode eq'direct' and !$isAmountzero}
164 <tr>
165 <th {$headerStyle}>
166 {ts}Credit Card Information{/ts}
167 </th>
168 </tr>
169 <tr>
170 <td colspan="2" {$valueStyle}>
171 {$credit_card_type}<br />
172 {$credit_card_number}<br />
173 {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
174 </td>
175 </tr>
176 {/if}
177 {if $component eq 'event'}
178 <tr>
179 <th {$headerStyle}>
180 {ts}Event Information and Location{/ts}
181 </th>
182 </tr>
183 <tr>
184 <td colspan="2" {$valueStyle}>
185 {$event.event_title}<br />
186 {$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}
187 </td>
188 </tr>
189
190 {if $event.participant_role}
191 <tr>
192 <td {$labelStyle}>
193 {ts}Participant Role{/ts}
194 </td>
195 <td {$valueStyle}>
196 {$event.participant_role}
197 </td>
198 </tr>
199 {/if}
200
201 {if $isShowLocation}
202 <tr>
203 <td colspan="2" {$valueStyle}>
204 {$location.address.1.display|nl2br}
205 </td>
206 </tr>
207 {/if}
208
209 {if $location.phone.1.phone || $location.email.1.email}
210 <tr>
211 <td colspan="2" {$labelStyle}>
212 {ts}Event Contacts:{/ts}
213 </td>
214 </tr>
215 {foreach from=$location.phone item=phone}
216 {if $phone.phone}
217 <tr>
218 <td {$labelStyle}>
219 {if $phone.phone_type}
220 {$phone.phone_type_display}
221 {else}
222 {ts}Phone{/ts}
223 {/if}
224 </td>
225 <td {$valueStyle}>
226 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
227 </td>
228 </tr>
229 {/if}
230 {/foreach}
231 {foreach from=$location.email item=eventEmail}
232 {if $eventEmail.email}
233 <tr>
234 <td {$labelStyle}>
235 {ts}Email{/ts}
236 </td>
237 <td {$valueStyle}>
238 {$eventEmail.email}
239 </td>
240 </tr>
241 {/if}
242 {/foreach}
243 {/if} {*phone block close*}
244 {/if}
245 </table>
246 </td>
247 </tr>
248
249 </table>
250 </center>
251
252 </body>
253 </html>