diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-09-07 15:35:37 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-09-20 13:52:29 +0200 |
| commit | e3635494ea4d8498a483e3c286eb1460b4493ea8 (patch) | |
| tree | 52f6fe770d0b3a692cefb4c940a8ff0b37457337 /addons/mass_mailing/static/src/xml/mass_mailing.xml | |
| parent | e5755b12cff00af1a0e81e1954179148f733bf0c (diff) | |
[IMP] mass_mailing: add default layout for mail themes
When there is no content in the mail, the user is now forced to choose
a theme. Once the choice is made, the theme introduces default content
(series of snippet to simplify user edition).
The default images are also changed when the theme is switched. To do
that, JS code was implemented so that on theme switch, all the images
are changed to check for images in the static theme folder or use a
theme related xml_id.
+ Refactore theme data management.
Diffstat (limited to 'addons/mass_mailing/static/src/xml/mass_mailing.xml')
| -rw-r--r-- | addons/mass_mailing/static/src/xml/mass_mailing.xml | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/addons/mass_mailing/static/src/xml/mass_mailing.xml b/addons/mass_mailing/static/src/xml/mass_mailing.xml index e82f4dbf88e..f780527d999 100644 --- a/addons/mass_mailing/static/src/xml/mass_mailing.xml +++ b/addons/mass_mailing/static/src/xml/mass_mailing.xml @@ -1,17 +1,13 @@ <?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-name="mass_mailing.theme_selector" 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="#"><img class="img img-responsive" t-att-src="theme.img"/></a> + </li> </div> - </t> + </div> </templates> |
