product.image in templates

This commit is contained in:
Diego Calvo
2021-03-29 13:32:07 +02:00
parent c627cbb2f1
commit a64dd745e2
2 changed files with 1632 additions and 1770 deletions

View File

@@ -124,11 +124,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -188,18 +184,11 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="border-collapse: collapse; border-spacing: 0px"
border-collapse: collapse;
border-spacing: 0px;
"
> >
<tbody> <tbody>
<tr> <tr>
<td <td style="width: 250px">
style="
width: 250px;
"
>
<a <a
href="https://latienda.coop/" href="https://latienda.coop/"
target="_blank" target="_blank"
@@ -266,11 +255,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -327,8 +312,7 @@
> >
<div <div
style=" style="
font-family: Poppins, font-family: Poppins, Arial, sans-serif;
Arial, sans-serif;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@@ -336,8 +320,7 @@
color: #374493; color: #374493;
" "
> >
Confirmación de solicitud Confirmación de solicitud enviada
enviada
</div> </div>
</td> </td>
</tr> </tr>
@@ -380,11 +363,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -442,30 +421,27 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="border-collapse: collapse; border-spacing: 0px"
border-collapse: collapse;
border-spacing: 0px;
"
> >
<tbody> <tbody>
<tr> <tr>
<td <td style="width: 250px">
style=" <a href="[ENLACE A PRODUCTO]" target="_blank">
width: 250px;
"
>
<a
href="[ENLACE A PRODUCTO]"
target="_blank"
>
<img <img
alt="" alt=""
height="auto" height="auto"
{% if product.image %} {%
src="{{product.image.url}}" if
{% else %} product.image
%}
src="{{product.image}}"
{%
else
%}
src="DEFAULT_PRODUCT_IMAGE" src="DEFAULT_PRODUCT_IMAGE"
{% endif %} {%
endif
%}
style=" style="
border: none; border: none;
display: block; display: block;
@@ -499,8 +475,7 @@
> >
<div <div
style=" style="
font-family: Noto Sans, font-family: Noto Sans, sans-serif;
sans-serif;
font-size: 13px; font-size: 13px;
line-height: 1; line-height: 1;
text-align: center; text-align: center;
@@ -509,12 +484,8 @@
> >
<span <span
href="https://latienda.coop/productos/{{product.id}}" href="https://latienda.coop/productos/{{product.id}}"
style=" style="font-size: 15px; display: inline-block"
font-size: 15px; >Enlace al producto</span
display: inline-block;
"
>Enlace al
producto</span
> >
<br /> <br />
<span <span
@@ -523,8 +494,7 @@
display: inline-block; display: inline-block;
margin-top: 5px; margin-top: 5px;
" "
>Nombre del >Nombre del producto</span
producto</span
> >
<br /> <br />
<span <span
@@ -574,8 +544,7 @@
> >
<p <p
style=" style="
font-family: Noto Sans, font-family: Noto Sans, sans-serif;
sans-serif;
font-size: 17px; font-size: 17px;
line-height: 1.5; line-height: 1.5;
text-align: center; text-align: center;
@@ -583,14 +552,10 @@
margin: 0 50px; margin: 0 50px;
" "
> >
¡Hola! Tu solicitud de ¡Hola! Tu solicitud de compra de este producto ha sido
compra de este producto ha comunicado a la cooperativa. Pronto tendrás noticias
sido comunicado a la suyas. Para cualquier duda o asistencia, ponte en
cooperativa. Pronto tendrás contacto con {{company.short_name}}.
noticias suyas. Para
cualquier duda o asistencia,
ponte en contacto con
{{company.short_name}}.
</p> </p>
</td> </td>
</tr> </tr>
@@ -633,11 +598,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -692,8 +653,7 @@
> >
<div <div
style=" style="
font-family: Poppins, font-family: Poppins, Arial, sans-serif;
Arial, sans-serif;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@@ -727,12 +687,7 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Nombre: </span>
style="
font-weight: bold;
"
>Nombre:
</span>
{{company.company_name}} {{company.company_name}}
</div> </div>
</td> </td>
@@ -759,30 +714,29 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Email: </span>
style="
font-weight: bold;
"
>Email:
</span>
{{company.email}} {{company.email}}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a <a href="{{company.shop_link}}" target="_blank">
href="{{company.shop_link}}"
target="_blank"
>
<img <img
alt="logo cooperativa" alt="logo cooperativa"
height="auto" height="auto"
{% if company.logo %} {%
if
company.logo
%}
src="{{company.logo.url}}" src="{{company.logo.url}}"
{% else %} {%
else
%}
src="DEFAULT_COOP_IMAGE" src="DEFAULT_COOP_IMAGE"
{% endif %} {%
endif
%}
style=" style="
border: none; border: none;
display: block; display: block;
@@ -837,11 +791,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -895,11 +845,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -955,8 +901,7 @@
> >
<p <p
style=" style="
border-top: solid 2px border-top: solid 2px #ffffff;
#ffffff;
font-size: 1px; font-size: 1px;
margin: 0px auto; margin: 0px auto;
width: 100%; width: 100%;
@@ -969,8 +914,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
style=" style="
border-top: solid border-top: solid 2px #ffffff;
2px #ffffff;
font-size: 1px; font-size: 1px;
margin: 0px auto; margin: 0px auto;
width: 560px; width: 560px;
@@ -979,14 +923,7 @@
width="560px" width="560px"
> >
<tr> <tr>
<td <td style="height: 0; line-height: 0">&nbsp;</td>
style="
height: 0;
line-height: 0;
"
>
&nbsp;
</td>
</tr> </tr>
</table> </table>
<![endif]--> <![endif]-->

View File

@@ -121,11 +121,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -185,18 +181,11 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="border-collapse: collapse; border-spacing: 0px"
border-collapse: collapse;
border-spacing: 0px;
"
> >
<tbody> <tbody>
<tr> <tr>
<td <td style="width: 250px">
style="
width: 250px;
"
>
<a <a
href="https://latienda.coop/" href="https://latienda.coop/"
target="_blank" target="_blank"
@@ -262,11 +251,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -323,8 +308,7 @@
> >
<div <div
style=" style="
font-family: Poppins, font-family: Poppins, Arial, sans-serif;
Arial, sans-serif;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@@ -332,8 +316,7 @@
color: #374493; color: #374493;
" "
> >
Interés en compra de Interés en compra de producto
producto
</div> </div>
</td> </td>
</tr> </tr>
@@ -376,11 +359,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -438,18 +417,11 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="border-collapse: collapse; border-spacing: 0px"
border-collapse: collapse;
border-spacing: 0px;
"
> >
<tbody> <tbody>
<tr> <tr>
<td <td style="width: 250px">
style="
width: 250px;
"
>
<a <a
href="https://latienda.coop/productos/{{product.id}}" href="https://latienda.coop/productos/{{product.id}}"
target="_blank" target="_blank"
@@ -461,7 +433,7 @@
if if
product.image product.image
%} %}
src="{{product.image.url}}" src="{{product.image}}"
{% {%
else else
%} %}
@@ -502,8 +474,7 @@
> >
<div <div
style=" style="
font-family: Noto Sans, font-family: Noto Sans, sans-serif;
sans-serif;
font-size: 13px; font-size: 13px;
line-height: 1; line-height: 1;
text-align: center; text-align: center;
@@ -512,12 +483,8 @@
> >
<span <span
href="https://latienda.coop/productos/{{product.id}}" href="https://latienda.coop/productos/{{product.id}}"
style=" style="font-size: 15px; display: inline-block"
font-size: 15px; >Enlace al producto</span
display: inline-block;
"
>Enlace al
producto</span
> >
<br /> <br />
<span <span
@@ -526,8 +493,7 @@
display: inline-block; display: inline-block;
margin-top: 5px; margin-top: 5px;
" "
>Nombre del >Nombre del producto</span
producto</span
> >
<br /> <br />
<span <span
@@ -600,11 +566,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -659,8 +621,7 @@
> >
<div <div
style=" style="
font-family: Poppins, font-family: Poppins, Arial, sans-serif;
Arial, sans-serif;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@@ -694,12 +655,7 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Nombre: </span>
style="
font-weight: bold;
"
>Nombre:
</span>
{{user.full_name}} {{user.full_name}}
</div> </div>
</td> </td>
@@ -726,12 +682,7 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Email: </span>
style="
font-weight: bold;
"
>Email:
</span>
{{user.email}} {{user.email}}
</div> </div>
</td> </td>
@@ -758,12 +709,7 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Teléfono: </span>
style="
font-weight: bold;
"
>Teléfono:
</span>
{{telephone}} {{telephone}}
</div> </div>
</td> </td>
@@ -790,11 +736,7 @@
color: #374493; color: #374493;
" "
> >
<span <span style="font-weight: bold">Comentarios: </span
style="
font-weight: bold;
"
>Comentarios: </span
>{{comment}} >{{comment}}
</div> </div>
</td> </td>
@@ -838,11 +780,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -896,11 +834,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
role="presentation" role="presentation"
style=" style="background: #ffffff; background-color: #ffffff; width: 100%"
background: #ffffff;
background-color: #ffffff;
width: 100%;
"
> >
<tbody> <tbody>
<tr> <tr>
@@ -956,8 +890,7 @@
> >
<p <p
style=" style="
border-top: solid 2px border-top: solid 2px #ffffff;
#ffffff;
font-size: 1px; font-size: 1px;
margin: 0px auto; margin: 0px auto;
width: 100%; width: 100%;
@@ -970,8 +903,7 @@
cellpadding="0" cellpadding="0"
cellspacing="0" cellspacing="0"
style=" style="
border-top: solid border-top: solid 2px #ffffff;
2px #ffffff;
font-size: 1px; font-size: 1px;
margin: 0px auto; margin: 0px auto;
width: 560px; width: 560px;
@@ -980,14 +912,7 @@
width="560px" width="560px"
> >
<tr> <tr>
<td <td style="height: 0; line-height: 0">&nbsp;</td>
style="
height: 0;
line-height: 0;
"
>
&nbsp;
</td>
</tr> </tr>
</table> </table>
<![endif]--> <![endif]-->