From 5ffe7dcafbcd0f37a01aaf3599bc6ff78bdcd4b5 Mon Sep 17 00:00:00 2001 From: stefanorigano Date: Wed, 21 Sep 2016 13:45:03 +0200 Subject: [PATCH] [FIX] mass_mailing: editable social links * Move social links out of tables so that they will not trigger at td data-selectors * Use o_mail_no_resize class to specify that the td container is not resizable (otherwise oe_handles will overlap the icons) * Adapt email templates --- addons/mass_mailing/views/snippets_themes.xml | 116 ++++----- .../views/snippets_themes_options.xml | 4 +- .../mass_mailing/views/themes_templates.xml | 227 ++++++++---------- 3 files changed, 146 insertions(+), 201 deletions(-) diff --git a/addons/mass_mailing/views/snippets_themes.xml b/addons/mass_mailing/views/snippets_themes.xml index 0f35177295a..16321faf6a9 100644 --- a/addons/mass_mailing/views/snippets_themes.xml +++ b/addons/mass_mailing/views/snippets_themes.xml @@ -97,46 +97,36 @@
- -
+   Your Logo   - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+
+
+ + + + + + + + + + + + + + + + + + + + +
@@ -149,7 +139,7 @@
- -
+  

@@ -158,39 +148,29 @@

 
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+
+
+ + + + + + + + + + + + + + + + + + + + +
diff --git a/addons/mass_mailing/views/snippets_themes_options.xml b/addons/mass_mailing/views/snippets_themes_options.xml index 83f24893be1..fb42d59e16c 100644 --- a/addons/mass_mailing/views/snippets_themes_options.xml +++ b/addons/mass_mailing/views/snippets_themes_options.xml @@ -6,7 +6,7 @@
+ data-selector="img, .mv, .col_mv, td:not(.o_mail_no_resize), th">
@@ -37,7 +37,7 @@
+ data-selector="[data-oe-field='body_html'] > div:not(.o_layout), [data-oe-field='body_html'] .oe_structure > div, td:not(.o_mail_no_resize), th">
- + Your Logo - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+ +
+ + + + + + + + + + + + + + + + + + + + +
@@ -182,44 +177,34 @@
- -
+ Your Logo - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+
+
+ + + + + + + + + + + + + + + + + + + + +
@@ -356,44 +341,34 @@
- -
+ Your Logo - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+
+
+ + + + + + + + + + + + + + + + + + + + +
@@ -480,44 +455,34 @@
- -
+ Your Logo - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
+
+
+ + + + + + + + + + + + + + + + + + + + +