You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <template id="view_email_template_corporate_identity">
  5. <body>
  6. <html>
  7. <img style="float: right" t-attf-src="data:image;base64,{{env.user.company_id.logo}}" />
  8. <!-- if some template calling us sets this variable,
  9. we print a h1 tag /-->
  10. <h1 t-if="email_heading"><t t-esc="email_heading" /></h1>
  11. <t t-raw="0" />
  12. <!-- use some standard footer if the user doesn't have
  13. a signature /-->
  14. <footer t-if="not email_use_user_signature">
  15. <p>
  16. <a t-att-href="env.user.company_id.website">
  17. <t t-esc="env.user.company_id.name" />
  18. </a>
  19. </p>
  20. <p><t t-esc="env.user.company_id.phone" /></p>
  21. </footer>
  22. <footer t-if="email_use_user_signature">
  23. <t t-raw="env.user.signature" />
  24. </footer>
  25. </html>
  26. </body>
  27. </template>
  28. <template id="view_email_template_demo1">
  29. <!-- because we can simply call the ci here, we don't need to
  30. repeat it /-->
  31. <t t-call="email_template_qweb.view_email_template_corporate_identity">
  32. <!-- the template we call uses this as title if we set it /-->
  33. <t t-set="email_heading" t-value="email_template.subject" />
  34. <h2>Dear <t t-esc="object.name" />,</h2>
  35. <p>
  36. This is an email template using qweb.
  37. </p>
  38. </t>
  39. </template>
  40. </data>
  41. </openerp>