Merge pull request #3799 from routinet/patch-1
[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}
96 {if $line_item.location.address.1.name}
97 {$line_item.location.address.1.name}<br />
98 {/if}
99 {if $line_item.location.address.1.street_address}
100 {$line_item.location.address.1.street_address}<br />
101 {/if}
102 {if $line_item.location.address.1.supplemental_address_1}
103 {$line_item.location.address.1.supplemental_address_1}<br />
104 {/if}
105 {if $line_item.location.address.1.supplemental_address_2}
106 {$line_item.location.address.1.supplemental_address_2}<br />
107 {/if}
108 {if $line_item.location.address.1.city}
109 {$line_item.location.address.1.city}, {$line_item.location.address.1.state_province} {$location.address.1.postal_code}
110 {/if}
111 {/if}{*End of isShowLocation condition*}<br /><br />
112 {$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
113 </td>
114 <td style="width: 180px">
115 {$line_item.num_participants}
116 {if $line_item.num_participants > 0}
117 <div class="participants" style="padding-left: 10px;">
118 {foreach from=$line_item.participants item=participant}
119 {$participant.display_name}<br />
120 {/foreach}
121 </div>
122 {/if}
123 {if $line_item.num_waiting_participants > 0}
124 Waitlisted:<br/>
125 <div class="participants" style="padding-left: 10px;">
126 {foreach from=$line_item.waiting_participants item=participant}
127 {$participant.display_name}<br />
128 {/foreach}
129 </div>
130 {/if}
131 </td>
132 <td style="width: 100px">
133 {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
134 </td>
135 <td style="width: 100px">
136 &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
137 </td>
138 </tr>
139 {/foreach}
6a488035
TO
140 </tbody>
141 <tfoot>
011aeb62 142 {if $discounts}
143 <tr>
144 <td>
145 </td>
146 <td>
147 </td>
148 <td>
149 Subtotal:
150 </td>
151 <td>
152 &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
153 </td>
154 </tr>
155 {foreach from=$discounts key=myId item=i}
156 <tr>
157 <td>
158 {$i.title}
159 </td>
160 <td>
161 </td>
162 <td>
163 </td>
164 <td>
165 -{$i.amount}
166 </td>
167 </tr>
168 {/foreach}
169 {/if}
170 <tr>
6a488035 171{if $line_items}
011aeb62 172 <td>
173 </td>
174 <td>
175 </td>
6a488035 176{/if}
011aeb62 177 <td>
178 <strong>Total:</strong>
179 </td>
180 <td>
181 <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
182 </td>
183 </tr>
6a488035
TO
184 </tfoot>
185 </table>
186
187 If you have questions about the status of your registration or purchase please feel free to contact us.
188 </body>
189</html>