Merge branch 'CRM-20460' into CRM-20460-4.7
[civicrm-core.git] / xml / templates / message_templates / event_registration_receipt_html.tpl
CommitLineData
6a488035
TO
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 {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
9 {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
10 {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
11
12 <p>Dear {contact.display_name},</p>
13 {if $is_pay_later}
14 <p>
15 This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
16 </p>
17 {else}
18 <p>
19 This is being sent to you as a {if $is_refund}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
20 </p>
21 {/if}
22
23 {if $is_pay_later}
24 <p>{$pay_later_receipt}</p>
25 {/if}
26
27 <p>Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
28 Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:</p>
29
011aeb62 30
6a488035 31{if $billing_name}
011aeb62 32 <table class="billing-info">
6a488035 33 <tr>
011aeb62 34 <th style="text-align: left;">
35 {ts}Billing Name and Address{/ts}
36 </th>
6a488035
TO
37 </tr>
38 <tr>
011aeb62 39 <td>
40 {$billing_name}<br />
41 {$billing_street_address}<br />
42 {$billing_city}, {$billing_state} {$billing_postal_code}<br/>
43 <br/>
44 {$email}
45 </td>
46 </tr>
6a488035
TO
47 </table>
48{/if}
49{if $credit_card_type}
011aeb62 50 <p>&nbsp;</p>
51 <table class="billing-info">
6a488035 52 <tr>
011aeb62 53 <th style="text-align: left;">
54 {ts}Credit Card Information{/ts}
55 </th>
6a488035
TO
56 </tr>
57 <tr>
011aeb62 58 <td>
59 {$credit_card_type}<br />
60 {$credit_card_number}<br />
61 {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
62 </td>
63 </tr>
6a488035
TO
64 </table>
65{/if}
66{if $source}
67 <p>&nbsp;</p>
68 {$source}
69{/if}
70 <p>&nbsp;</p>
71 <table width="600">
72 <thead>
011aeb62 73 <tr>
6a488035 74{if $line_items}
011aeb62 75 <th style="text-align: left;">
76 Event
77 </th>
78 <th style="text-align: left;">
79 Participants
80 </th>
6a488035 81{/if}
011aeb62 82 <th style="text-align: left;">
83 Price
84 </th>
85 <th style="text-align: left;">
86 Total
87 </th>
88 </tr>
89 </thead>
6a488035 90 <tbody>
011aeb62 91 {foreach from=$line_items item=line_item}
92 <tr>
93 <td style="width: 220px">
94 {$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})<br />
95 {if $line_item.event->is_show_location}
060625d6 96 {$line_item.location.address.1.display|nl2br}
011aeb62 97 {/if}{*End of isShowLocation condition*}<br /><br />
98 {$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
99 </td>
100 <td style="width: 180px">
101 {$line_item.num_participants}
102 {if $line_item.num_participants > 0}
103 <div class="participants" style="padding-left: 10px;">
104 {foreach from=$line_item.participants item=participant}
105 {$participant.display_name}<br />
106 {/foreach}
107 </div>
108 {/if}
109 {if $line_item.num_waiting_participants > 0}
110 Waitlisted:<br/>
111 <div class="participants" style="padding-left: 10px;">
112 {foreach from=$line_item.waiting_participants item=participant}
113 {$participant.display_name}<br />
114 {/foreach}
115 </div>
116 {/if}
117 </td>
118 <td style="width: 100px">
119 {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
120 </td>
121 <td style="width: 100px">
122 &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
123 </td>
124 </tr>
125 {/foreach}
6a488035
TO
126 </tbody>
127 <tfoot>
011aeb62 128 {if $discounts}
129 <tr>
130 <td>
131 </td>
132 <td>
133 </td>
134 <td>
135 Subtotal:
136 </td>
137 <td>
138 &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
139 </td>
140 </tr>
141 {foreach from=$discounts key=myId item=i}
142 <tr>
143 <td>
144 {$i.title}
145 </td>
146 <td>
147 </td>
148 <td>
149 </td>
150 <td>
151 -{$i.amount}
152 </td>
153 </tr>
154 {/foreach}
155 {/if}
156 <tr>
6a488035 157{if $line_items}
011aeb62 158 <td>
159 </td>
160 <td>
161 </td>
6a488035 162{/if}
011aeb62 163 <td>
164 <strong>Total:</strong>
165 </td>
166 <td>
167 <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
168 </td>
169 </tr>
6a488035
TO
170 </tfoot>
171 </table>
172
173 If you have questions about the status of your registration or purchase please feel free to contact us.
174 </body>
175</html>