summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-09-05 13:33:17 +0100
committerqsm-odoo <qsm@odoo.com>2016-09-05 17:07:31 +0100
commit61e48b09fb8d9896ecea230f0d1b7de1d47cae67 (patch)
tree3a2a992e563a37e73d02bae73e21cb240a0f2d3b /addons/mass_mailing/static/src/xml
parent71b8bc7570d1e9d691334f245d216c48f4348c64 (diff)
[REF] mass_mailing: convert templates to themes and clean code
* Remove mass mailing template switching system (lemon, airmail, ...) and replace it with a theme selector which only toggle a different class on the body. * Lint JS files. * Change the way the editor is overridden by mass_mailing in a more odoo way (put the JS in assets and check on runtime if it must be applied. + fix editor style + remove useless code + remove odoo template
Diffstat (limited to 'addons/mass_mailing/static/src/xml')
-rw-r--r--addons/mass_mailing/static/src/xml/mass_mailing.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/addons/mass_mailing/static/src/xml/mass_mailing.xml b/addons/mass_mailing/static/src/xml/mass_mailing.xml
new file mode 100644
index 00000000000..e82f4dbf88e
--- /dev/null
+++ b/addons/mass_mailing/static/src/xml/mass_mailing.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+ <t t-name="mass_mailing.theme_selector">
+ <div class="o_mail_theme_selector">
+ <a href="#" class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">
+ <i class="fa fa-paint-brush"/>
+ </a>
+ <div class="dropdown-menu">
+ <li t-foreach="themes" t-as="theme">
+ <a href="#" t-att-data-class="theme.className">
+ <img class="img img-responsive" t-att-src="theme.imgSource"/>
+ </a>
+ </li>
+ </div>
+ </div>
+ </t>
+</templates>