diff options
Diffstat (limited to 'addons/website_slides/data/mail_data.xml')
| -rw-r--r-- | addons/website_slides/data/mail_data.xml | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/addons/website_slides/data/mail_data.xml b/addons/website_slides/data/mail_data.xml new file mode 100644 index 00000000..f7fa3420 --- /dev/null +++ b/addons/website_slides/data/mail_data.xml @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data noupdate="1"> + <record id="slide_template_published" model="mail.template"> + <field name="name">Slide Published</field> + <field name="model_id" ref="model_slide_slide"/> + <field name="subject">New ${object.slide_type} published on ${object.channel_id.name}</field> + <field name="body_html" type="html"> + <div style="margin: 0px; padding: 0px;"> + <p style="margin: 0px; padding: 0px; font-size: 13px;"> + Hello<br/><br/> + There is something new in the course <strong>${object.channel_id.name}</strong> you are following:<br/><br/> + <center><strong>${object.name}</strong></center> + % if object.image_1024 + <div style="margin: 16px 8px 16px 8px; text-align: center;"> + <a href="${object.website_url}"> + <img alt="${object.name}" src="${ctx['base_url']}/web/image/slide.slide/${object.id}/image_1024" style="height:auto; width:150px; margin: 16px;"/> + </a> + </div> + % endif + <div style="margin: 16px 8px 16px 8px; text-align: center;"> + <a href="${object.website_url}" + style="background-color: #875a7b; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">View content</a> + </div> + Enjoy this exclusive content! + % if user.signature + <br /> + ${user.signature | safe} + % endif + </p> + </div> + </field> + <field name="auto_delete" eval="True"/> + </record> + + <record id="slide_template_shared" model="mail.template"> + <field name="name">Slide Shared</field> + <field name="model_id" ref="model_slide_slide"/> + <field name="subject">${user.name} shared a ${object.slide_type} with you!</field> + <field name="email_from">${user.email_formatted | safe}</field> + <field name="email_to">${ctx.get('email', '')}</field> + <field name="body_html" type="html"> + <div style="margin: 0px; padding: 0px;"> + <p style="margin: 0px; padding: 0px; font-size: 13px;"> + Hello<br/><br/> + ${user.name} shared the ${object.slide_type} <strong>${object.name}</strong> with you! + <div style="margin: 16px 8px 16px 8px; text-align: center;"> + <a href="${(object.website_url + '?fullscreen=1') if ctx['fullscreen'] else object.website_url | safe}"> + <img alt="${object.name}" src="${ctx['base_url']}/web/image/slide.slide/${object.id}/image_1024" style="height:auto; width:150px; margin: 16px;"/> + </a> + </div> + <div style="margin: 16px 8px 16px 8px; text-align: center;"> + <a href="${(object.website_url + '?fullscreen=1') if ctx['fullscreen'] else object.website_url | safe}" + style="background-color: #875a7b; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">View <strong>${object.name}</strong></a> + </div> + % if user.signature + <br /> + ${user.signature | safe} + % endif + </p> + </div> + </field> + <field name="auto_delete" eval="True"/> + </record> + + <!-- Channel subtypes --> + <record id="mt_channel_slide_published" model="mail.message.subtype"> + <field name="name">Presentation Published</field> + <field name="res_model">slide.channel</field> + <field name="default" eval="True"/> + <field name="description">Presentation Published</field> + </record> + + <!-- Slide channel invite feature --> + <record id="mail_template_slide_channel_invite" model="mail.template"> + <field name="name">Channel: Invite by email</field> + <field name="model_id" ref="model_slide_channel_partner" /> + <field name="subject">You have been invited to join ${object.channel_id.name}</field> + <field name="use_default_to" eval="True"/> + <field name="body_html" type="html"> +<div style="margin: 0px; padding: 0px; font-size: 13px;"> + <p style="margin: 0px; padding: 0px; font-size: 13px;"> + Hello<br/><br/> + You have been invited to join a new course: ${object.channel_id.name}. + </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>&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&utm_medium=email" style="color: #875A7B;">Odoo</a> +</td></tr> +</table> + </template> + + </data> +</odoo> |
