Merge pull request #22888 from civicrm/5.47
[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 <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
16
17 <!-- BEGIN HEADER -->
18 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- END HEADER -->
20
21 <!-- BEGIN CONTENT -->
22 <tr>
23 <td>
24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
25 {if $isRefund}
26 <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>
27 {else}
28 <p>{ts}Below you will find a receipt for this payment.{/ts}</p>
29 {if $paymentsComplete}
30 <p>{ts}Thank you for completing this contribution.{/ts}</p>
31 {/if}
32 {/if}
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}This Refund Amount{/ts}
45 </td>
46 <td {$valueStyle}>
47 {$refundAmount|crmMoney}
48 </td>
49 </tr>
50 {else}
51 <tr>
52 <th {$headerStyle}>{ts}Payment Details{/ts}</th>
53 </tr>
54 <tr>
55 <td {$labelStyle}>
56 {ts}This Payment Amount{/ts}
57 </td>
58 <td {$valueStyle}>
59 {$paymentAmount|crmMoney}
60 </td>
61 </tr>
62 {/if}
63 {if $receive_date}
64 <tr>
65 <td {$labelStyle}>
66 {ts}Transaction Date{/ts}
67 </td>
68 <td {$valueStyle}>
69 {$receive_date|crmDate}
70 </td>
71 </tr>
72 {/if}
73 {if !empty($trxn_id)}
74 <tr>
75 <td {$labelStyle}>
76 {ts}Transaction #{/ts}
77 </td>
78 <td {$valueStyle}>
79 {$trxn_id}
80 </td>
81 </tr>
82 {/if}
83 {if !empty($paidBy)}
84 <tr>
85 <td {$labelStyle}>
86 {ts}Paid By{/ts}
87 </td>
88 <td {$valueStyle}>
89 {$paidBy}
90 </td>
91 </tr>
92 {/if}
93 {if !empty($checkNumber)}
94 <tr>
95 <td {$labelStyle}>
96 {ts}Check Number{/ts}
97 </td>
98 <td {$valueStyle}>
99 {$checkNumber}
100 </td>
101 </tr>
102 {/if}
103
104 <tr>
105 <th {$headerStyle}>{ts}Contribution Details{/ts}</th>
106 </tr>
107 {if isset($totalAmount)}
108 <tr>
109 <td {$labelStyle}>
110 {ts}Total Fee{/ts}
111 </td>
112 <td {$valueStyle}>
113 {$totalAmount|crmMoney}
114 </td>
115 </tr>
116 {/if}
117 {if isset($totalPaid)}
118 <tr>
119 <td {$labelStyle}>
120 {ts}Total Paid{/ts}
121 </td>
122 <td {$valueStyle}>
123 {$totalPaid|crmMoney}
124 </td>
125 </tr>
126 {/if}
127 {if isset($amountOwed)}
128 <tr>
129 <td {$labelStyle}>
130 {ts}Balance Owed{/ts}
131 </td>
132 <td {$valueStyle}>
133 {$amountOwed|crmMoney}
134 </td> {* This will be zero after final payment. *}
135 </tr>
136 {/if}
137 </table>
138
139 </td>
140 </tr>
141 <tr>
142 <td>
143 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
144 {if !empty($billingName) || !empty($address)}
145 <tr>
146 <th {$headerStyle}>
147 {ts}Billing Name and Address{/ts}
148 </th>
149 </tr>
150 <tr>
151 <td colspan="2" {$valueStyle}>
152 {if !empty($billingName)}{$billingName}{/if}<br />
153 {if !empty($address)}{$address|nl2br}{/if}
154 </td>
155 </tr>
156 {/if}
157 {if !empty($credit_card_number)}
158 <tr>
159 <th {$headerStyle}>
160 {ts}Credit Card Information{/ts}
161 </th>
162 </tr>
163 <tr>
164 <td colspan="2" {$valueStyle}>
165 {$credit_card_type}<br />
166 {$credit_card_number}<br />
167 {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
168 </td>
169 </tr>
170 {/if}
171 {if $component eq 'event'}
172 <tr>
173 <th {$headerStyle}>
174 {ts}Event Information and Location{/ts}
175 </th>
176 </tr>
177 <tr>
178 <td colspan="2" {$valueStyle}>
179 {$event.event_title}<br />
180 {$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} {$event.event_tz}
181 </td>
182 </tr>
183
184 {if !empty($event.participant_role)}
185 <tr>
186 <td {$labelStyle}>
187 {ts}Participant Role{/ts}
188 </td>
189 <td {$valueStyle}>
190 {$event.participant_role}
191 </td>
192 </tr>
193 {/if}
194
195 {if !empty($isShowLocation)}
196 <tr>
197 <td colspan="2" {$valueStyle}>
198 {$location.address.1.display|nl2br}
199 </td>
200 </tr>
201 {/if}
202
203 {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
204 <tr>
205 <td colspan="2" {$labelStyle}>
206 {ts}Event Contacts:{/ts}
207 </td>
208 </tr>
209 {foreach from=$location.phone item=phone}
210 {if $phone.phone}
211 <tr>
212 <td {$labelStyle}>
213 {if $phone.phone_type}
214 {$phone.phone_type_display}
215 {else}
216 {ts}Phone{/ts}
217 {/if}
218 </td>
219 <td {$valueStyle}>
220 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
221 </td>
222 </tr>
223 {/if}
224 {/foreach}
225 {foreach from=$location.email item=eventEmail}
226 {if $eventEmail.email}
227 <tr>
228 <td {$labelStyle}>
229 {ts}Email{/ts}
230 </td>
231 <td {$valueStyle}>
232 {$eventEmail.email}
233 </td>
234 </tr>
235 {/if}
236 {/foreach}
237 {/if} {*phone block close*}
238 {/if}
239 </table>
240 </td>
241 </tr>
242
243 </table>
244
245 </body>
246 </html>