Update templates to have default footer

This commit is contained in:
Antti Salmivaara 2018-12-18 16:40:52 +02:00
parent 8c65594ec3
commit d7b0b2515e
9 changed files with 55 additions and 20 deletions

View file

@ -23,14 +23,14 @@
</tr>
</thead>
<tbody>
{{#each line-items}}
{{#each tx-line-items}}
{{#contains include-for "customer"}}
<tr>
{{#eq "day" code}}
{{#eq "line-item/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}}
{{#eq "line-item/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>
{{/eq}}
@ -47,5 +47,9 @@
</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>
</html>

View file

@ -12,5 +12,9 @@
{{/with}}
<p><a href="{{marketplace.url}}">Try to book something else instead</a></p>
<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>
</html>

View file

@ -12,5 +12,9 @@
{{/with}}
<p><a href="{{marketplace.url}}">Try to book something else instead</a></p>
<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>
</html>

View file

@ -23,20 +23,20 @@
</tr>
</thead>
<tbody>
{{#each line-items}}
{{#each tx-line-items}}
{{#contains include-for "provider"}}
<tr>
{{#eq "day" code}}
{{#eq "line-item/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}}
{{#eq "line-item/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>
{{/eq}}
{{#eq "provider-commission" code}}
{{#eq "line-item/provider-commission" code}}
<td>{{marketplace.name}} fee:</td>
<td style="text-align: right; padding-left: 20px;">{{> format-money money=line-total}}</td>
{{/eq}}
@ -53,5 +53,9 @@
</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>
</html>

View file

@ -21,20 +21,20 @@
</tr>
</thead>
<tbody>
{{#each line-items}}
{{#each tx-line-items}}
{{#contains include-for "provider"}}
<tr>
{{#eq "day" code}}
{{#eq "line-item/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}}
{{#eq "line-item/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>
{{/eq}}
{{#eq "provider-commission" code}}
{{#eq "line-item/provider-commission" code}}
<td>{{marketplace.name}} fee:</td>
<td style="text-align: right; padding-left: 20px;">{{> format-money money=line-total}}</td>
{{/eq}}
@ -55,5 +55,9 @@
<p><a href="{{marketplace.url}}/sale/{{url-encode id}}/details">Accept or decline the booking</a></p>
{{/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>
</html>

View file

@ -7,5 +7,8 @@
<p><a href="{{marketplace.url}}/order/{{url-encode id}}/details">Leave a review</a></p>
{{/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>
</html>

View file

@ -15,5 +15,9 @@
<a href="{{marketplace.url}}/u/{{url-encode recipient.id}}">View your profile.</a>
</p>
{{/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>
</html>

View file

@ -9,5 +9,9 @@
<a href="{{marketplace.url}}/{{#eq recipient-role "customer"}}order{{else}}sale{{/eq}}/{{url-encode id}}/details">Leave a review</a>
</p>
{{/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>
</html>

View file

@ -7,5 +7,9 @@
<p><a href="{{marketplace.url}}/sale/{{url-encode id}}/details">Leave a review</a></p>
{{/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>
</html>