Merge pull request #44 from Yajo/responsive-date
[8.0][website_mail_snippet_responsive] New date snippet and some fixespull/51/head
-
21website_mail_snippet_responsive/README.rst
-
1website_mail_snippet_responsive/__init__.py
-
4website_mail_snippet_responsive/__openerp__.py
-
7website_mail_snippet_responsive/models/__init__.py
-
13website_mail_snippet_responsive/models/res_config.py
-
12website_mail_snippet_responsive/models/website.py
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_1_col.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_2_cols.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_3_cols.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_event_date.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_hr.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_img_text.png
-
BINwebsite_mail_snippet_responsive/static/src/img/snippet_text_img.png
-
24website_mail_snippet_responsive/views/res_config_view.xml
-
5website_mail_snippet_responsive/views/snippet_1_col.xml
-
31website_mail_snippet_responsive/views/snippet_2_cols.xml
-
48website_mail_snippet_responsive/views/snippet_3_cols.xml
-
113website_mail_snippet_responsive/views/snippet_event_date.xml
-
5website_mail_snippet_responsive/views/snippet_hr.xml
-
5website_mail_snippet_responsive/views/snippet_img_text.xml
-
5website_mail_snippet_responsive/views/snippet_text_img.xml
@ -0,0 +1 @@ |
|||
from . import models |
@ -0,0 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel |
|||
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0. |
|||
|
|||
from . import res_config |
|||
from . import website |
@ -0,0 +1,13 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Incaser Informatica S.L. - Sergio Teruel |
|||
# © 2016 Incaser Informatica S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|||
|
|||
from openerp import models, fields |
|||
|
|||
|
|||
class WebsiteMailSippetResponsive(models.TransientModel): |
|||
_name = 'website.config.settings' |
|||
_inherit = ['website.config.settings'] |
|||
|
|||
mail_button_color = fields.Char(related='website_id.mail_button_color') |
@ -0,0 +1,12 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel |
|||
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0. |
|||
|
|||
from openerp import models, fields |
|||
|
|||
|
|||
class Website(models.Model): |
|||
_inherit = 'website' |
|||
|
|||
mail_button_color = fields.Char(default='#00B518') |
Before Width: 100 | Height: 79 | Size: 1.3 KiB After Width: 100 | Height: 79 | Size: 1.7 KiB |
Before Width: 100 | Height: 79 | Size: 2.0 KiB After Width: 100 | Height: 79 | Size: 1.9 KiB |
Before Width: 100 | Height: 79 | Size: 3.0 KiB After Width: 100 | Height: 79 | Size: 2.1 KiB |
After Width: 100 | Height: 79 | Size: 2.7 KiB |
Before Width: 100 | Height: 79 | Size: 320 B After Width: 100 | Height: 79 | Size: 1.2 KiB |
Before Width: 100 | Height: 79 | Size: 1.5 KiB After Width: 100 | Height: 79 | Size: 2.6 KiB |
Before Width: 100 | Height: 79 | Size: 1.3 KiB After Width: 100 | Height: 79 | Size: 2.6 KiB |
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="view_website_config_settings" model="ir.ui.view"> |
|||
<field name="name">Email Application</field> |
|||
<field name="model">website.config.settings</field> |
|||
<field name="inherit_id" ref="website.view_website_config_settings"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//group[@string='Menu']" position="after"> |
|||
<group string="Mail"> |
|||
<label for="id" string="Mail button color"/> |
|||
<div> |
|||
<div> |
|||
<field name="mail_button_color" class="oe_inline"/> |
|||
</div> |
|||
</div> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
@ -0,0 +1,113 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|||
|
|||
<openerp> |
|||
<data> |
|||
|
|||
<template id="snippet_event_date" |
|||
inherit_id="website_mail.email_designer_snippets"> |
|||
<xpath expr="//div[@id='snippet_email_structure']"> |
|||
<t t-call="website_mail_snippet_responsive.snippet"> |
|||
<t t-set="image" t-value="'snippet_event_date'"/> |
|||
<t t-set="title">Date + Text + Button (2 columns)</t> |
|||
<tbody> |
|||
<tr> |
|||
<td style="padding:0 20px;"> |
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="left" style="font-size: 18pt; font-family: Arial, sans-serif; color: #000000; padding-top: 30px;">Title</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td style="padding: 0;" valign="top"><!-- LEFT COLUMN --> |
|||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 50%; min-width:285px;"> |
|||
<tbody> |
|||
<tr> |
|||
<td style="padding: 20px 0 20px 20px;"> |
|||
<table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" style="border-collapse:collapse;background:inherit;color:inherit; background:#000000"> |
|||
<tbody> |
|||
<tr> |
|||
<td style="padding:1px;"> |
|||
<table border="0" cellpadding="0" cellspacing="0" width="200" height="200" style="background:#FFFFFF"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="center" style="font-size: 65pt; line-height:50pt; font-weight: bold; font-family: Arial, sans-serif; color: #000000; padding: 30px 0 0 0;">07</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="center" style="padding: 10px 0 0 0; font-size: 16pt; font-weight: bold; letter-spaccing:2px; text-transform: uppercase; line-height: 20px; font-family: Arial, sans-serif; color: #000000;">December</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="center" style="padding: 0 0 30px 0; font-size: 16pt; font-weight: bold; letter-spaccing:2px; text-transform: uppercase; line-height: 20px; font-family: Arial, sans-serif; color: #000000;">18:00</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
|
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
|
|||
<!-- RIGHT COLUMN --> |
|||
|
|||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 50%; min-width:285px;"> |
|||
<tbody> |
|||
<tr> |
|||
<td style="padding: 20px 0 20px 20px;"> |
|||
<table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" style="border-collapse:collapse;background:inherit;color:inherit; background:#FFFFFF"> |
|||
<tbody> |
|||
|
|||
<tr> |
|||
<td style="padding:0;"> |
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|||
<tbody> |
|||
|
|||
<tr> |
|||
<td align="left" style="padding: 0 0 0 0; font-size: 9pt; line-height: 20px; font-family: Arial, sans-serif; color: #000000;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est. Aenean at mollis ipsum.</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="left"> |
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="left" style="padding: 25px 0;"> |
|||
<table border="0" cellpadding="0" cellspacing="0"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="center"><a href="#" t-attf-style="font-size: 9pt; font-family: Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #{website.mail_button_color}; border-top: 10px solid #{website.mail_button_color}; border-bottom: 10px solid #{website.mail_button_color}; border-left: 20px solid #{website.mail_button_color}; border-right: 20px solid #{website.mail_button_color}; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="bg_color_picker" target="_blank">Learn more</a></td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
|
|||
</data> |
|||
</openerp> |