summaryrefslogtreecommitdiff
path: root/addons/website_slides/data
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2020-08-11 09:46:46 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-11 10:31:23 +0000
commit4f2a4b175fe5d3dc541c834a5475a8f77b7fb976 (patch)
treefa44a58d512d142ea23813bb79675c26bba872b6 /addons/website_slides/data
parentb39f4b6307e00f9f959d6f3bf36041344d13ace6 (diff)
[REF] website_slides: improve elearning backend usability and onboarding
PURPOSE Improve elearning backend usability and onboarding SPECIFICATIONS Improve layout of email send when invite. Do like a SO, add the join button in the notification email and not in the composer itself. It required to create a new notification layout specific to that invite wizard. Improve channel form view: remove statistics as they are already displayed in various places, add a stat button for content/visits, better display of karma (split gain from karma-based access rules). Automatically publish channel's product to avoid de-synchronization of publish flags. Remove unused channel_url field on wizard. LINKS Task ID-2241513 PR #55698
Diffstat (limited to 'addons/website_slides/data')
-rw-r--r--addons/website_slides/data/mail_data.xml85
1 files changed, 73 insertions, 12 deletions
diff --git a/addons/website_slides/data/mail_data.xml b/addons/website_slides/data/mail_data.xml
index cda332ba5cf..f7fa34203ee 100644
--- a/addons/website_slides/data/mail_data.xml
+++ b/addons/website_slides/data/mail_data.xml
@@ -80,24 +80,85 @@
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px; font-size: 13px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
- Dear ${object.partner_id.name or 'participant'}<br/><br/>
+ Hello<br/><br/>
You have been invited to join a new course: ${object.channel_id.name}.
- <div style="margin: 16px 0px 16px 0px;">
- <a href="${(object.channel_id.website_url) | safe}"
- style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
- Click here to start the course.
- </a>
- </div>
- Enjoy this exclusive content !
- % if user.signature
- <br />
- ${user.signature | safe}
- % endif
</p>
</div>
</field>
<field name="lang">${object.partner_id.lang}</field>
<field name="auto_delete" eval="True"/>
</record>
+
+ <!-- QWeb templates -->
+ <!-- Note: mail_notification_channel_invite: record should be a slide.channel.partner record -->
+ <template id="mail_notification_channel_invite">
+<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
+<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 24px; background-color: white; color: #454748; border-collapse:separate;">
+<tbody>
+ <!-- HEADER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: white; padding: 0; border-collapse:separate;">
+ <tr><td valign="middle">
+ <span style="font-size: 10px;">Your <t t-esc="model_description or 'document'"/></span><br/>
+ <span style="font-size: 20px; font-weight: bold;">
+ <t t-esc="message.record_name and message.record_name.replace('/','-') or ''"/>
+ </span>
+ </td><td valign="middle" align="right">
+ <img t-att-src="'/logo.png?company=%s' % (company.id or 0)" style="padding: 0px; margin: 0px; height: 48px;" t-att-alt="'%s' % company.name"/>
+ </td></tr>
+ <tr><td colspan="2" style="text-align:center;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:4px 0px 32px 0px;"/>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+ <!-- CONTENT -->
+ <tr>
+ <td style="min-width: 590px;">
+ <t t-raw="message.body"/>
+ <div style="margin: 32px 0px 32px 0px; text-align: center;">
+ <a t-att-href="record.channel_id.website_url"
+ style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
+ Click here to start the course
+ </a>
+ </div>
+ <div style="margin: 0px; padding: 0px; font-size:13px;">
+ Enjoy this exclusive content !
+ </div>
+ <div>&amp;nbsp;</div>
+ <div t-if="signature" style="font-size: 13px;">
+ <div t-raw="signature"/>
+ </div>
+ </td>
+ </tr>
+ <!-- FOOTER -->
+ <tr>
+ <td align="center" style="min-width: 590px; padding: 0 8px 0 8px; font-size:11px;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 4px 0px;"/>
+ <b t-esc="company.name"/><br/>
+ <div style="color: #999999;">
+ <t t-esc="company.phone"/>
+ <t t-if="company.email"> |
+ <a t-att-href="'mailto:%s' % company.email" style="text-decoration:none; color: #999999;"><t t-esc="company.email"/></a>
+ </t>
+ <t t-if="company.website"> |
+ <a t-att-href="'%s' % company.website" style="text-decoration:none; color: #999999;">
+ <t t-esc="company.website"/>
+ </a>
+ </t>
+ </div>
+ </td>
+ </tr>
+</tbody>
+</table>
+</td></tr>
+<!-- POWERED BY -->
+<tr><td align="center" style="min-width: 590px;">
+ Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Odoo</a>
+</td></tr>
+</table>
+ </template>
+
</data>
</odoo>