summaryrefslogtreecommitdiff
path: root/src/email/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/email/views')
-rw-r--r--src/email/views/confirmation.erb53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/email/views/confirmation.erb b/src/email/views/confirmation.erb
new file mode 100644
index 0000000..aba297d
--- /dev/null
+++ b/src/email/views/confirmation.erb
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<!--
+ Copyright 2020 Google LLC
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<html>
+ <head>
+ <title>Your Order Confirmation</title>
+ <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
+ </head>
+ <style>
+ body{
+ font-family: 'DM Sans', sans-serif;
+ }
+ </style>
+ <body>
+ <h2>Your Order Confirmation</h2>
+ <p>Thanks for shopping with us!<p>
+ <h3>Order ID</h3>
+ <p><%= order.order_id %></p>
+ <h3>Shipping</h3>
+ <p><%= order.shipping_tracking_id %></p>
+ <p><%= order.shipping_cost.units %>.<%= order.shipping_cost.nanos %> <%= order.shipping_cost.currency_code %></p>
+ <p><%= order.shipping_address.street_address_1 %>, <%= order.shipping_address.street_address_2 %>, <%= order.shipping_address.city %>, <%= order.shipping_address.country %> <%= order.shipping_address.zip_code %></p>
+ <h3>Items</h3>
+ <table style="width:100%">
+ <tr>
+ <th>Item No.</th>
+ <th>Quantity</th>
+ <th>Price</th>
+ </tr>
+ <% order.items.each do |item| %>
+ <tr>
+ <td><%= item.item.product_id %></td>
+ <td><%= item.item.quantity %></td>
+ <td><%= item.cost.units %>.<%= item.cost.nanos %> <%= item.cost.currency_code %></td>
+ </tr>
+ <% end %>
+ </table>
+ </body>
+</html>