flex-template-web/ext/default-mail-templates/booking-request-accepted/booking-request-accepted-html.html
2019-09-25 10:04:25 +03:00

88 lines
2.8 KiB
HTML

{{~#*inline "format-money"~}}
{{money-amount money}} {{money.currency}}
{{~/inline~}}
{{~#*inline "format-date"~}}
{{date date format="MMM d, YYYY"}}
{{~/inline~}}
<html>
<body>
<h1>Your booking request was accepted!</h1>
{{#with transaction}}
<p>{{provider.display-name}} has accepted your booking request for {{listing.title}} from {{> format-date date=booking.start}} to {{> format-date date=booking.end}}.</p>
<p>We have charged {{> format-money money=payin-total}} from your credit card. Here's your receipt.</p>
<table>
<thead>
<tr>
<th style="text-align: left;">Payment</th>
</tr>
</thead>
<tbody>
{{#each tx-line-items}}
{{#contains include-for "customer"}}
{{#eq "line-item/day" code}}
<tr>
<td>Price per day</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=unit-price}}</td>
</tr>
{{#if seats}}
<tr>
<td>Days</td>
<td style="text-align: right; padding-left: 20px">&times; {{number units}}</td>
</tr>
<tr>
<td>Seats</td>
<td style="text-align: right; padding-left: 20px">&times; {{number seats}}</td>
</tr>
{{else}}
<tr>
<td>Days</td>
<td style="text-align: right; padding-left: 20px">&times; {{number quantity}}</td>
</tr>
{{/if}}
{{/eq}}
{{#eq "line-item/night" code}}
<tr>
<td>Price per night</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=unit-price}}</td>
</tr>
{{#if seats}}
<tr>
<td>Nights</td>
<td style="text-align: right; padding-left: 20px">&times; {{number units}}</td>
</tr>
<tr>
<td>Seats</td>
<td style="text-align: right; padding-left: 20px">&times; {{number seats}}</td>
</tr>
{{else}}
<tr>
<td>Nights</td>
<td style="text-align: right; padding-left: 20px">&times; {{number quantity}}</td>
</tr>
{{/if}}
{{/eq}}
{{/contains}}
{{/each}}
</tbody>
<tfoot>
<tr>
<th style="text-align: left;">Payment total</th>
<th style="text-align: left; padding-left: 20px;">{{> format-money money=payin-total}}</th>
</tr>
</tfoot>
</table>
{{/with}}
<hr />
<p>You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.</p>
</body>
</html>