improvements on new templates
This commit is contained in:
@@ -41,7 +41,7 @@ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
|
|||||||
|
|
||||||
EMAIL_BACKEND = "anymail.backends.amazon_ses.EmailBackend"
|
EMAIL_BACKEND = "anymail.backends.amazon_ses.EmailBackend"
|
||||||
# DEFAULT_FROM_EMAIL = "no-reply@latienda.com"
|
# DEFAULT_FROM_EMAIL = "no-reply@latienda.com"
|
||||||
DEFAULT_FROM_EMAIL = "samuel.molina@enreda.coop"
|
DEFAULT_FROM_EMAIL = "info@latienda.coop"
|
||||||
|
|
||||||
SERVER_EMAIL = "mail-server@latienda.com"
|
SERVER_EMAIL = "mail-server@latienda.com"
|
||||||
|
|
||||||
|
|||||||
0
templates/purchase_contact_confirmation_v2.html
Normal file
0
templates/purchase_contact_confirmation_v2.html
Normal file
@@ -1,176 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
||||||
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
<title>Interés en copra de producto</title>
|
|
||||||
<style>
|
|
||||||
.body {
|
|
||||||
color: #374493;
|
|
||||||
font-family: 'Poppins', sans-serif;
|
|
||||||
background-color: #8cead8;
|
|
||||||
}
|
|
||||||
.mail {
|
|
||||||
margin: 50px auto;
|
|
||||||
width: 60%;
|
|
||||||
padding: 30px;
|
|
||||||
min-height: 400px;
|
|
||||||
background-color: white;
|
|
||||||
border-radius: 5px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-content: center;
|
|
||||||
}
|
|
||||||
.latienda-logo {
|
|
||||||
max-width: 300px;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
.title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 60px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
.main {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-content: center;
|
|
||||||
padding: 0 30px 30px 30px;
|
|
||||||
}
|
|
||||||
.product-data {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
max-width: 400px;
|
|
||||||
margin: auto;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
.product-image {
|
|
||||||
max-width: 250px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.product-link {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.product-price {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
.client-info {
|
|
||||||
max-width: fit-content;
|
|
||||||
}
|
|
||||||
.client-data {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 50px;
|
|
||||||
font-family: 'Noto Sans', sans-serif;
|
|
||||||
align-self: left;
|
|
||||||
}
|
|
||||||
.name {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-weight: 700;
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
.value {
|
|
||||||
margin: 0;
|
|
||||||
display: inline;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
@media all and (min-width: 780px) {
|
|
||||||
.mail {
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media all and (max-width: 780px) {
|
|
||||||
.title {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
.value,
|
|
||||||
.name {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body class="body">
|
|
||||||
<div class="mail">
|
|
||||||
<header class="header">
|
|
||||||
<a href="https://latienda.coop/" target="_blank">
|
|
||||||
<img
|
|
||||||
src="https://latienda.coop/_nuxt/img/latienda-logo.3e53761.svg"
|
|
||||||
alt=""
|
|
||||||
class="latienda-logo"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
<h1 class="title">
|
|
||||||
<span>Interés en compra</span>
|
|
||||||
<span>de producto</span>
|
|
||||||
</h1>
|
|
||||||
</header>
|
|
||||||
<main class="main">
|
|
||||||
<div class="product-data">
|
|
||||||
<a
|
|
||||||
href="https://latiendacoop.s3.amazonaws.com/products/0101UNADEGATOBERMEJO.jpeg"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src="https://latiendacoop.s3.amazonaws.com/products/0101UNADEGATOBERMEJO.jpeg"
|
|
||||||
alt=""
|
|
||||||
class="product-image"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="https://latienda.coop/productos/356"
|
|
||||||
class="product-link"
|
|
||||||
>Enlace al producto</a
|
|
||||||
>
|
|
||||||
<span class="product-name">Nombre del producto: {{product.name}}</span>
|
|
||||||
<span class="product-id-sku">{{product.sku}}</span>
|
|
||||||
<span class="product-price">{{product.price}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="client-info">
|
|
||||||
<h2>Datos cliente</h2>
|
|
||||||
<dl class="client-data">
|
|
||||||
<dt class="name">Nombre:</dt>
|
|
||||||
<dd class="value">{{user.full_name}}<br /></dd>
|
|
||||||
<dt class="name">Email:</dt>
|
|
||||||
<dd class="value">{{user.email}}<br /></dd>
|
|
||||||
<dt class="name">Teléfono:</dt>
|
|
||||||
<dd class="value">{{telephone}}<br /></dd>
|
|
||||||
<dt class="name">Comentarios:</dt>
|
|
||||||
<dd class="value">{{comment}}<br/>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
<footer class="footer">
|
|
||||||
<span>2021 La Tienda.Coop</span>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
<!-- V1 version -->
|
|
||||||
</html>
|
|
||||||
@@ -500,7 +500,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
href="[ENLACE A PRODUCTO]"
|
href="https://latienda.coop/productos/{{product.id}}"
|
||||||
style="
|
style="
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -525,7 +525,16 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
"
|
"
|
||||||
>Ref8304</span
|
>{{product.name}}</span
|
||||||
|
>
|
||||||
|
<br />
|
||||||
|
<span
|
||||||
|
style="
|
||||||
|
font-size: 15px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 5px;
|
||||||
|
"
|
||||||
|
>{{product.sku}}</span
|
||||||
>
|
>
|
||||||
<br />
|
<br />
|
||||||
<span
|
<span
|
||||||
@@ -535,7 +544,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
"
|
"
|
||||||
>30€</span
|
>{{product.price}}€</span
|
||||||
>
|
>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
@@ -680,7 +689,7 @@
|
|||||||
"
|
"
|
||||||
>Nombre:
|
>Nombre:
|
||||||
</span>
|
</span>
|
||||||
María
|
{{user.full_name}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -712,7 +721,7 @@
|
|||||||
"
|
"
|
||||||
>Email:
|
>Email:
|
||||||
</span>
|
</span>
|
||||||
maria@maria.com
|
{{user.email}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -744,7 +753,7 @@
|
|||||||
"
|
"
|
||||||
>Teléfono:
|
>Teléfono:
|
||||||
</span>
|
</span>
|
||||||
666666666
|
{{telephone}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -775,9 +784,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
"
|
"
|
||||||
>Comentarios: </span
|
>Comentarios: </span
|
||||||
>vivo en un cuarto sin
|
>{{comment}}
|
||||||
ascensor, bajo hasta el
|
|
||||||
tercero como mucho
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user