Merge pull request #10030 from eileenmcnaughton/test
[civicrm-core.git] / templates / CRM / Event / Cart / Form / Checkout / ThankYou.tpl
1 {include file="CRM/common/TrackingFields.tpl"}
2
3 <div class="crm-block crm-event-thankyou-form-block">
4 <p>
5 {ts}This is your receipt of payment made for the following event registration.{/ts}
6 </p>
7 <p>
8 {ts 1=$transaction_id 2=$transaction_date|date_format:"%D %I:%M %p %Z"}Your order number is <strong>#%1</strong>. Please print this confirmation for your records. You will receieve a confirmation email with the information below. Information about the workshops will be sent separately to each participant. Here's a summary of your transaction placed on %2:{/ts}
9 </p>
10 {if $pay_later_receipt && $is_pay_later}
11 <p>
12 {$pay_later_receipt}
13 </p>
14 {/if}
15 {if $payment_required}
16 <div class="crm-group billing_name_address-group">
17 <div class="header-dark">
18 {ts}Billing Name and Address{/ts}
19 </div>
20 <div class="crm-section no-label billing_name-section">
21 <div class="content">{$billing_name}</div>
22 <div class="clear"></div>
23 </div>
24 <div class="crm-section no-label billing_address-section">
25 <div class="content">
26 {$billing_street_address}<br/>
27 {$billing_city}, {$billing_state} {$billing_postal_code}
28 </div>
29 <div class="clear"></div>
30 </div>
31 </div>
32 {if $credit_card_type}
33 <div class="crm-group credit_card-group">
34 <div class="header-dark">
35 {ts}Credit Card Information{/ts}
36 </div>
37 <div class="crm-section no-label credit_card_details-section">
38 <div class="content">{$credit_card_type}</div>
39 <div class="content">{$credit_card_number}</div>
40 <div class="content">{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
41 <div class="clear"></div>
42 </div>
43 </div>
44 </div>
45 {/if}
46 {/if}
47 <table>
48 <thead>
49 <tr style="border-bottom: 1px solid #ccc">
50 <th class="event-title">
51 {ts}Event{/ts}
52 </th>
53 <th class="participants-column">
54 {ts}Participants{/ts}
55 </th>
56 <th class="cost">
57 {ts}Price{/ts}
58 </th>
59 <th class="amount">
60 {ts}Total{/ts}
61 </th>
62 </tr>
63 </thead>
64 <tbody>
65 {foreach from=$line_items item=line_item}
66 <tr class="event-line-item {$line_item.class}">
67 <td class="event-info">
68 <div class="event-title"><strong>{$line_item.event->title}</strong></div>
69 {if $line_item.event->is_show_location}
70 <div class="event-location">
71 {if $line_item.location.address.1.name}
72 {$line_item.location.address.1.name}
73 {/if}
74 {if $line_item.location.address.1.street_address}
75 {$line_item.location.address.1.street_address}
76 {/if}
77 {if $line_item.location.address.1.supplemental_address_1}
78 {$line_item.location.address.1.supplemental_address_1}
79 {/if}
80 {if $line_item.location.address.1.supplemental_address_2}
81 {$line_item.location.address.1.supplemental_address_2}
82 {/if}
83 {if $line_item.location.address.1.supplemental_address_3}
84 {$line_item.location.address.1.supplemental_address_3}
85 {/if}
86 {if $line_item.location.address.1.city}
87 {$line_item.location.address.1.city}, {$line_item.location.address.1.state_province} {$line_item.location.address.1.postal_code}
88 {/if}
89 </div>
90 {/if}{*End of isShowLocation condition*}
91 <div class="event-data">
92 {$line_item.event->start_date|date_format:"%D %I:%M %p"} -
93 {$line_item.event->end_date|date_format:"%I:%M %p"}
94 </div>
95 </td>
96 <td class="participants-column">
97 {$line_item.num_participants}<br />
98 {if $line_item.num_participants > 0}
99 <div class="participants" style="padding-left: 10px;">
100 {foreach from=$line_item.participants item=participant}
101 {$participant.display_name}<br />
102 {/foreach}
103 </div>
104 {/if}
105 {if $line_item.num_waiting_participants > 0}
106 {ts}Waitlisted:{/ts}<br/>
107 <div class="participants" style="padding-left: 10px;">
108 {foreach from=$line_item.waiting_participants item=participant}
109 {$participant.display_name}<br />
110 {/foreach}
111 </div>
112 {/if}
113 </td>
114 <td class="cost">
115 {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
116 </td>
117 <td class="amount">
118 &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
119 </td>
120 </tr>
121 {/foreach}
122 </tbody>
123 <tfoot>
124 {if $discounts}
125 <tr>
126 <td>
127 </td>
128 <td>
129 </td>
130 <td>
131 {ts}Subtotal{/ts}:
132 </td>
133 <td>
134 &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
135 </td>
136 </tr>
137 {foreach from=$discounts key=myId item=i}
138 <tr>
139 <td>
140 {$i.title}
141 </td>
142 <td>
143 </td>
144 <td>
145 </td>
146 <td>
147 -{$i.amount|crmMoney:$currency|string_format:"%10s"}
148 </td>
149 </tr>
150 {/foreach}
151 {/if}
152 <tr>
153 <td>
154 </td>
155 <td>
156 </td>
157 <td class="total">
158 <strong>{ts}Total{/ts}:</strong>
159 </td>
160 <td class="total">
161 <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
162 </td>
163 </tr>
164 </tfoot>
165 </table>
166 <p>{ts}If you have questions about the status of your registration or purchase please contact us.{/ts}</p>
167 </div>