Additional changes to workflow message templates
[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
56658066 12 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
6a488035
TO
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
e2481819 27 <p>Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
6a488035
TO
28 Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:</p>
29
6a488035 30{if $billing_name}
011aeb62 31 <table class="billing-info">
6a488035 32 <tr>
011aeb62 33 <th style="text-align: left;">
34 {ts}Billing Name and Address{/ts}
35 </th>
6a488035
TO
36 </tr>
37 <tr>
011aeb62 38 <td>
39 {$billing_name}<br />
40 {$billing_street_address}<br />
41 {$billing_city}, {$billing_state} {$billing_postal_code}<br/>
42 <br/>
43 {$email}
44 </td>
45 </tr>
6a488035
TO
46 </table>
47{/if}
48{if $credit_card_type}
011aeb62 49 <p>&nbsp;</p>
50 <table class="billing-info">
6a488035 51 <tr>
011aeb62 52 <th style="text-align: left;">
53 {ts}Credit Card Information{/ts}
54 </th>
6a488035
TO
55 </tr>
56 <tr>
011aeb62 57 <td>
58 {$credit_card_type}<br />
59 {$credit_card_number}<br />
60 {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
61 </td>
62 </tr>
6a488035
TO
63 </table>
64{/if}
65{if $source}
66 <p>&nbsp;</p>
67 {$source}
68{/if}
69 <p>&nbsp;</p>
cb342529 70 <table width="700">
6a488035 71 <thead>
011aeb62 72 <tr>
6a488035 73{if $line_items}
011aeb62 74 <th style="text-align: left;">
75 Event
76 </th>
77 <th style="text-align: left;">
78 Participants
79 </th>
6a488035 80{/if}
011aeb62 81 <th style="text-align: left;">
82 Price
83 </th>
84 <th style="text-align: left;">
85 Total
86 </th>
87 </tr>
88 </thead>
6a488035 89 <tbody>
011aeb62 90 {foreach from=$line_items item=line_item}
91 <tr>
92 <td style="width: 220px">
93 {$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})<br />
94 {if $line_item.event->is_show_location}
060625d6 95 {$line_item.location.address.1.display|nl2br}
011aeb62 96 {/if}{*End of isShowLocation condition*}<br /><br />
97 {$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
98 </td>
99 <td style="width: 180px">
100 {$line_item.num_participants}
101 {if $line_item.num_participants > 0}
102 <div class="participants" style="padding-left: 10px;">
103 {foreach from=$line_item.participants item=participant}
104 {$participant.display_name}<br />
105 {/foreach}
106 </div>
107 {/if}
108 {if $line_item.num_waiting_participants > 0}
109 Waitlisted:<br/>
110 <div class="participants" style="padding-left: 10px;">
111 {foreach from=$line_item.waiting_participants item=participant}
112 {$participant.display_name}<br />
113 {/foreach}
114 </div>
115 {/if}
116 </td>
117 <td style="width: 100px">
118 {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
119 </td>
120 <td style="width: 100px">
121 &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
122 </td>
123 </tr>
124 {/foreach}
6a488035
TO
125 </tbody>
126 <tfoot>
011aeb62 127 {if $discounts}
128 <tr>
129 <td>
130 </td>
131 <td>
132 </td>
133 <td>
134 Subtotal:
135 </td>
136 <td>
137 &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
138 </td>
139 </tr>
140 {foreach from=$discounts key=myId item=i}
141 <tr>
142 <td>
143 {$i.title}
144 </td>
145 <td>
146 </td>
147 <td>
148 </td>
149 <td>
150 -{$i.amount}
151 </td>
152 </tr>
153 {/foreach}
154 {/if}
155 <tr>
6a488035 156{if $line_items}
011aeb62 157 <td>
158 </td>
159 <td>
160 </td>
6a488035 161{/if}
011aeb62 162 <td>
163 <strong>Total:</strong>
164 </td>
165 <td>
166 <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
167 </td>
168 </tr>
6a488035
TO
169 </tfoot>
170 </table>
171
172 If you have questions about the status of your registration or purchase please feel free to contact us.
173 </body>
174</html>