diff --git a/website_mail_snippet_fixed/README.rst b/website_mail_snippet_fixed/README.rst new file mode 100644 index 00000000..4ea702f0 --- /dev/null +++ b/website_mail_snippet_fixed/README.rst @@ -0,0 +1,90 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +============================================== +Fixed-Width Layout Snippets for Writing Emails +============================================== + +This module extends the functionality of the website mail designer with new +snippets with a fixed-width layout that works fine across any mail client, +including MS Outlook. + +Installation +============ + +This module is prepared to be compatible with module ``website_mail_bg_color``. +If you install it, you will be able to change snippets' background colors, but +it is not required. + +Usage +===== + +To use this module, you need to: + +#. Install any module that makes use of the website mail designer, such as + ``mass_mailing``. +#. Edit an email with the website mail designer. +#. You have a new collection of snippets under *Fixed 560px Width* section. + Use them as usual. + +If you choose the *Horizontal Separator* snippet, you will be able to set its +height too. For that, you will have to aim carefully to click inside the green +line, and then use the option that will float above it. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/205/8.0 + +Known issues / Roadmap +====================== + +* Snippet code is ugly, but that's because mail client HTML engines usually + lack many of the modern CSS and HTML features. I hope we will be able to + improve this as mail clients keep improving. +* To set the *Horizontal Separator* height, you have to click inside it, which + will insert a ``
`` in Firefox, that will make it seem like + its height is at least like a caret, even if you set a lower value. Do not + worry, it goes away when you press *Save*. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed `feedback +`_. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Daniel Gómez-Zurita +* Rafael Blasco +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/website_mail_snippet_fixed/__init__.py b/website_mail_snippet_fixed/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/website_mail_snippet_fixed/__openerp__.py b/website_mail_snippet_fixed/__openerp__.py new file mode 100644 index 00000000..5285e2b4 --- /dev/null +++ b/website_mail_snippet_fixed/__openerp__.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Fixed-Width Layout Snippets for Writing Emails", + "summary": "560px width extra building blocks", + "version": "8.0.1.0.0", + "category": "Marketing", + "website": "http://www.antiun.com", + "author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "images": [ + "images/snippets.png", + ], + "depends": [ + "website_mail_snippet_vertical_resize_base", + ], + "data": [ + "views/templates.xml", + "views/snippet_1_col.xml", + "views/snippet_2_cols.xml", + "views/snippet_3_cols.xml", + "views/snippet_event_date.xml", + "views/snippet_hr.xml", + "views/snippet_img_text.xml", + "views/snippet_text_img.xml", + ], +} diff --git a/website_mail_snippet_fixed/i18n/es.po b/website_mail_snippet_fixed/i18n/es.po new file mode 100644 index 00000000..57bb9ab6 --- /dev/null +++ b/website_mail_snippet_fixed/i18n/es.po @@ -0,0 +1,98 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_mail_snippet_fixed +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-02-10 16:43+0100\n" +"PO-Revision-Date: 2016-02-10 16:44+0100\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.8.6\n" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Big image + Text + Button (1 column)" +msgstr "Imagen grande + texto + botón (1 columna)" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Change Height" +msgstr "Cambiar altura" + +#. module: website_mail_snippet_fixed +#. openerp-web +#: code:addons/website_mail_snippet_fixed/static/src/js/vertical_resize.js:23 +#, python-format +msgid "Element height in pixels" +msgstr "Altura del elemento en píxeles" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Horizontal Separator" +msgstr "Separador horizontal" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Image + Text + Button (2 columns)" +msgstr "Imagen + texto + botón (2 columnas)" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Image + Text + Button (3 columns)" +msgstr "Imagen + texto + botón (3 columnas)" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Integer ut tempor lectus. Vivamus at gravida arcu." +msgstr "Integer ut tempor lectus. Vivamus at gravida arcu." + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Learn more" +msgstr "Aprenda más" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Left Image, Right Text + Button" +msgstr "Imagen a la izquierda, texto + botón a la derecha" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Left Text and Button, Right Image" +msgstr "Texto + botón a la izquierda, imagen a la derecha" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "" +"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." +msgstr "" +"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." + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "News Item" +msgstr "Noticia del boletín" + +#. module: website_mail_snippet_fixed +#. openerp-web +#: code:addons/website_mail_snippet_fixed/static/src/js/vertical_resize.js:22 +#, python-format +msgid "Set element height" +msgstr "" + +#. module: website_mail_snippet_fixed +#: view:website:560px_section +msgid "Title" +msgstr "Título" diff --git a/website_mail_snippet_fixed/images/snippets.png b/website_mail_snippet_fixed/images/snippets.png new file mode 100644 index 00000000..0be2ce80 Binary files /dev/null and b/website_mail_snippet_fixed/images/snippets.png differ diff --git a/website_mail_snippet_fixed/static/description/icon.png b/website_mail_snippet_fixed/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/website_mail_snippet_fixed/static/description/icon.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_1_col.png b/website_mail_snippet_fixed/static/src/img/snippet_1_col.png new file mode 100644 index 00000000..e258e330 Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_1_col.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_2_cols.png b/website_mail_snippet_fixed/static/src/img/snippet_2_cols.png new file mode 100644 index 00000000..47ad23d3 Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_2_cols.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_3_cols.png b/website_mail_snippet_fixed/static/src/img/snippet_3_cols.png new file mode 100644 index 00000000..8a6e801c Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_3_cols.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_event_date.png b/website_mail_snippet_fixed/static/src/img/snippet_event_date.png new file mode 100644 index 00000000..596bae4e Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_event_date.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_hr.png b/website_mail_snippet_fixed/static/src/img/snippet_hr.png new file mode 100644 index 00000000..8f067149 Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_hr.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_img_text.png b/website_mail_snippet_fixed/static/src/img/snippet_img_text.png new file mode 100644 index 00000000..ce001051 Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_img_text.png differ diff --git a/website_mail_snippet_fixed/static/src/img/snippet_text_img.png b/website_mail_snippet_fixed/static/src/img/snippet_text_img.png new file mode 100644 index 00000000..11a2b348 Binary files /dev/null and b/website_mail_snippet_fixed/static/src/img/snippet_text_img.png differ diff --git a/website_mail_snippet_fixed/views/snippet_1_col.xml b/website_mail_snippet_fixed/views/snippet_1_col.xml new file mode 100644 index 00000000..52bd9dab --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_1_col.xml @@ -0,0 +1,60 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_2_cols.xml b/website_mail_snippet_fixed/views/snippet_2_cols.xml new file mode 100644 index 00000000..fe8b07b3 --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_2_cols.xml @@ -0,0 +1,128 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_3_cols.xml b/website_mail_snippet_fixed/views/snippet_3_cols.xml new file mode 100644 index 00000000..70e7a22b --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_3_cols.xml @@ -0,0 +1,188 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_event_date.xml b/website_mail_snippet_fixed/views/snippet_event_date.xml new file mode 100644 index 00000000..b87f025f --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_event_date.xml @@ -0,0 +1,108 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_hr.xml b/website_mail_snippet_fixed/views/snippet_hr.xml new file mode 100644 index 00000000..ab69fb38 --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_hr.xml @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_img_text.xml b/website_mail_snippet_fixed/views/snippet_img_text.xml new file mode 100644 index 00000000..df5e2e4f --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_img_text.xml @@ -0,0 +1,95 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/snippet_text_img.xml b/website_mail_snippet_fixed/views/snippet_text_img.xml new file mode 100644 index 00000000..7b1df9ab --- /dev/null +++ b/website_mail_snippet_fixed/views/snippet_text_img.xml @@ -0,0 +1,95 @@ + + + + + + + + + + diff --git a/website_mail_snippet_fixed/views/templates.xml b/website_mail_snippet_fixed/views/templates.xml new file mode 100644 index 00000000..9c02a723 --- /dev/null +++ b/website_mail_snippet_fixed/views/templates.xml @@ -0,0 +1,55 @@ + + + + + + + + + +