-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
order_created.html.eex
118 lines (114 loc) · 5.33 KB
/
order_created.html.eex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<tr>
<td valign="top" id="templateHeader">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;">
<tbody class="mcnTextBlockOuter">
<tr>
<td valign="top" class="mcnTextBlockInner" style="padding-top:9px;">
<!--[if mso]><table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"><tr><![endif]-->
<!--[if mso]><td valign="top" width="600" style="width:600px;"><![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer">
<tbody>
<tr>
<td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
<h1><%= dgettext "email", "We Have Received Your Order!" %></h1>
<br>
<%= dgettext "email", "Hey there, Thanks for ordering from the elementary store. Just letting you know that we have received your order!" %>
<br>
</td>
</tr>
</tbody>
</table>
<!--[if mso]></td><![endif]-->
<!--[if mso]></tr></table><![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" id="templateBody">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;">
<tbody class="mcnTextBlockOuter">
<tr>
<td valign="top" class="mcnTextBlockInner" style="padding-top:9px;">
<!--[if mso]><table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"><tr><![endif]-->
<!--[if mso]><td valign="top" width="600" style="width:600px;"><![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer">
<tbody>
<tr>
<td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
<p><%= dgettext "email", "Here's what we shipped in this order:" %></p>
<%= for item <- @order.items do %>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="padding-top:10px;padding-bottom:10px;" valign="top" width="25%">
<%= if not (item |> product_preview() |> is_nil()) do %>
<img alt="<%= item.name %>" src="<%= product_preview(item) %>" style="background-color:#f0f0f0;" width="100%">
<% end %>
</td>
<td colspan="3" style="padding-bottom:10px;" valign="top" width="75%">
<p style="padding-left:20px;font-weight:300;font-size:13px;color:#222222;line-height:20px;"><%= item.name %></p>
</td>
</tr>
<tr>
<td style="border-bottom:1px solid #e1e1e1;" width="25%"><strong><%= dgettext "email", "Qty" %></strong>
<p style="margin:5px 0 10px 0;font-weight:300;font-size:13px;color:#222222;line-height:20px;"><%= item.quantity %></p>
</td>
<td style="border-bottom:1px solid #e1e1e1;" width="25%"><strong><%= dgettext "email", "Price" %></strong>
<p style="margin:5px 0 10px 0;font-weight:300;font-size:13px;color:#222222;line-height:20px;">$<%= item.retail_price %></p>
</td>
</tr>
</tbody>
</table>
<% end %>
<table bgcolor="f8f8f8" cellpadding="0" cellspacing="0" style="margin:25px 0;padding:25px;" width="100%">
<tbody>
<tr>
<td valign="top">
<p style="margin-left:10px;font-weight:300;font-size:15px;color:#222222;line-height:20px;">
<strong><%= dgettext "email", "Shipping Address:" %></strong>
<br>
<%= for line <- address_template(@order.recipient) do %>
<%= line %><br>
<% end %>
</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!--[if mso]></td><![endif]-->
<!--[if mso]></tr></table><![endif]-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;">
<tbody class="mcnTextBlockOuter">
<tr>
<td valign="top" class="mcnTextBlockInner" style="padding-top:9px;">
<!--[if mso]><table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"><tr><![endif]-->
<!--[if mso]><td valign="top" width="600" style="width:600px;"><![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer">
<tbody>
<tr>
<td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
<p><span style="line-height:1.6"><%= dgettext "email", "Looking forward to your next order!" %></span></p>
<%= dgettext "email", "The elementary Team" %>
</td>
</tr>
</tbody>
</table>
<!--[if mso]></td><![endif]-->
<!--[if mso]></tr></table><![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>