Update default mail templates to latest version [skip ci]

This commit is contained in:
Boyan Tabakov 2018-01-09 11:22:23 +02:00
parent 0ccddce093
commit ad1422a9ec
6 changed files with 25 additions and 2 deletions

View file

@ -26,6 +26,10 @@
{{#each line-items}}
{{#contains include-for "customer"}}
<tr>
{{#eq "day" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "day" "days"}}</td>
<td style="padding-left: 20px;">{{> format-money money=line-total}}</td>
{{/eq}}
{{#eq "night" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "night" "nights"}}</td>
<td style="padding-left: 20px;">{{> format-money money=line-total}}</td>

View file

@ -17,6 +17,9 @@ We have charged {{> format-money money=payin-total}} from your credit card. Here
Payment
{{#each line-items~}}
{{~#contains include-for "customer"~}}
{{~#eq "day" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "day" "days"}}: {{> format-money money=line-total}}
{{/eq~}}
{{~#eq "night" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "night" "nights"}}: {{> format-money money=line-total}}
{{/eq~}}

View file

@ -26,6 +26,11 @@
{{#each line-items}}
{{#contains include-for "provider"}}
<tr>
{{#eq "day" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "day" "days"}}</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=line-total}}</td>
{{/eq}}
{{#eq "night" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "night" "nights"}}</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=line-total}}</td>

View file

@ -17,6 +17,9 @@ Here's the breakdown.
Payment
{{#each line-items~}}
{{~#contains include-for "provider"~}}
{{~#eq "day" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "day" "days"}}: {{> format-money money=line-total}}
{{/eq~}}
{{~#eq "night" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "night" "nights"}}: {{> format-money money=line-total}}
{{/eq~}}

View file

@ -24,6 +24,11 @@
{{#each line-items}}
{{#contains include-for "provider"}}
<tr>
{{#eq "day" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "day" "days"}}</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=line-total}}</td>
{{/eq}}
{{#eq "night" code}}
<td>{{> format-money money=unit-price}} &times; {{number quantity}} {{inflect quantity "night" "nights"}}</td>
<td style="text-align: right; padding-left: 20px">{{> format-money money=line-total}}</td>
@ -45,7 +50,7 @@
</tfoot>
</table>
<p>You need to accept the request by {{> format-date date=booking-expires-on}}. Otherwise the request will be expired and you won't get paid. If the booked dates won't work for you, you can also choose to decline the request.</p>
<p>You need to accept the request by {{> format-date date=delayed-transition.run-at}}. Otherwise the request will be expired and you won't get paid. If the booked dates won't work for you, you can also choose to decline the request.</p>
<p><a href="{{marketplace.url}}/sale/{{url-encode id}}/details">Accept or decline the booking</a></p>

View file

@ -15,6 +15,9 @@ Good news! {{customer.display-name}} just requested to book {{listing.title}} fr
Payment
{{#each line-items~}}
{{~#contains include-for "provider"~}}
{{~#eq "day" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "day" "days"}}: {{> format-money money=line-total}}
{{/eq~}}
{{~#eq "night" code~}}
{{> format-money money=unit-price}} x {{number quantity}} {{inflect quantity "night" "nights"}}: {{> format-money money=line-total}}
{{/eq~}}
@ -25,7 +28,7 @@ Payment
{{/each~}}
You earn: {{> format-money money=payout-total}}
You need to accept the request by {{> format-date date=booking-expires-on}}. Otherwise the request will be expired and you won't get paid. If the booked dates won't work for you, you can also choose to decline the request.
You need to accept the request by {{> format-date date=delayed-transition.run-at}}. Otherwise the request will be expired and you won't get paid. If the booked dates won't work for you, you can also choose to decline the request.
Accept or decline the booking: {{marketplace.url}}/sale/{{url-encode id}}/details