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