Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use MJML for promote customer to staff set up password e-mail
Anna Siwik047ae8b4245a
diff --git a/templates/templated_email/dashboard/staff/set_password.email b/templates/templated_email/dashboard/staff/set_password.emailindex fb3c0d3cb7..4d5830bd03 100644--- a/templates/templated_email/dashboard/staff/set_password.email+++ b/templates/templated_email/dashboard/staff/set_password.email@@ -17,5 +17,5 @@ This is an automatically generated email, please do not reply.{% endblock %}{% block html %}-{% include 'templated_email/html/dashboard/staff/set_password.html' %}+{% include 'templated_email/html/compiled/dashboard/staff/set_password.html' %}{% endblock %}diff --git a/templates/templated_email/html/compiled/dashboard/staff/set_password.html b/templates/templated_email/html/compiled/dashboard/staff/set_password.htmlnew file mode 100644index 0000000000..1d4a4e41e2--- /dev/null+++ b/templates/templated_email/html/compiled/dashboard/staff/set_password.html@@ -0,0 +1,153 @@+<!doctype html>+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">+<head>+ <title></title>+ <!--[if !mso]><!-- -->+ <meta http-equiv="X-UA-Compatible" content="IE=edge">+ <!--<![endif]-->+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<meta name="viewport" content="width=device-width, initial-scale=1.0">+<style type="text/css">+ #outlook a { padding: 0; }+ .ReadMsgBody { width: 100%; }+ .ExternalClass { width: 100%; }+ .ExternalClass * { line-height:100%; }+ body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }+ table, td { border-collapse:collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; }+ img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; }+ p { display: block; margin: 13px 0; }+</style>+<!--[if !mso]><!-->+<style type="text/css">+ @media only screen and (max-width:480px) {+ @-ms-viewport { width:320px; }+ @viewport { width:320px; }+ }+</style>+<!--<![endif]-->+<!--[if mso]>+<xml>+ <o:OfficeDocumentSettings>+ <o:AllowPNG/>+ <o:PixelsPerInch>96</o:PixelsPerInch>+ </o:OfficeDocumentSettings>+</xml>+<![endif]-->+<!--[if lte mso 11]>+<style type="text/css">+ .outlook-group-fix {+ width:100% !important;+ }+</style>+<![endif]-->++<!--[if !mso]><!-->+ <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">+ <style type="text/css">++ @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);++ </style>+ <!--<![endif]--><style type="text/css">++ address {+ font-style: inherit;+ font-family: Ubuntu, Helvetica, Arial;+ }+</style><style type="text/css">+ @media only screen and (min-width:480px) {+ .mj-column-per-100 { width:100%!important; }+ }+</style>+</head>+<body>++ <div class="mj-container"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;" class="no-display-outlook">+ <![endif]--><div style="display: none; margin: 0px auto; max-width: 600px;" class="no-display"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:left;">{% load i18n %}</div></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]-->+ <!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;" class="no-display-outlook">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">+ <![endif]--><div style="display: none; margin: 0px auto; max-width: 600px;" class="no-display"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:left;">{% load staticfiles %}</div></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]-->+ <!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">+ <![endif]--><div style="margin:0px auto;max-width:600px;"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="center"><table role="presentation" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0px;" align="center" border="0"><tbody><tr><td style="padding: 5px; width: 176px;" width="176"><img alt="" height="38px" src="{{ protocol}}://{{ domain }}{% static 'images/logo-document.svg' %}" style="border:none;border-radius:0px;display:block;font-size:13px;outline:none;text-decoration:none;width:100%;height:38px;" width="176"></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]-->+ <!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">+ <![endif]--><div style="margin:0px auto;max-width:600px;"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;line-height:22px;text-align:left;">{% trans "Hi!" context "Set password for staff member e-mail text" %}</div></td></tr><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:left;">{% blocktrans context "Set password for staff member e-mail text" %}+ You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.<br>+ Click the link below to set up your password.+ {% endblocktrans %}</div></td></tr><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:left;"><a href="{{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}">+ {{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}+ </a></div></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]-->+ <!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">+ <![endif]--><div style="margin:0px auto;max-width:600px;"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="left"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:left;">{% blocktrans context "Base e-mail text" %}+ This is an automatically generated e-mail, please do not reply.+ {% endblocktrans %}</div></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]-->+ <!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" align="center" style="width:600px;">+ <tr>+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">+ <![endif]--><div style="margin:0px auto;max-width:600px;background:#F2F2F2;"><table role="presentation" cellpadding="0" cellspacing="0" style="font-size:0px;width:100%;background:#F2F2F2;" align="center" border="0"><tbody><tr><td style="text-align: center; vertical-align: top; direction: ltr; font-size: 0px; padding: 20px 0px;" align="center" valign="top"><!--[if mso | IE]>+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">+ <tr>+ <td style="vertical-align:top;width:600px;">+ <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap: break-word; font-size: 0px; padding: 10px 25px;" align="center"><div style="cursor:auto;color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;text-align:center;">{% blocktrans trimmed context "Base e-mail footer" %}+ Sincerely, {{ site_name }}+ {% endblocktrans %}</div></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></td></tr></tbody></table></div><!--[if mso | IE]>+ </td></tr></table>+ <![endif]--></div>+</body>+</html>\ No newline at end of filediff --git a/templates/templated_email/html/dashboard/staff/set_password.html b/templates/templated_email/html/dashboard/staff/set_password.htmldeleted file mode 100644index 1c057e4632..0000000000--- a/templates/templated_email/html/dashboard/staff/set_password.html+++ /dev/null@@ -1,17 +0,0 @@-{% extends "templated_email/html/base.html" %}-{% load i18n %}--{% block content %}-{% blocktrans context "Set password for staff member e-mail text" %}-<p>Hi!</p>--<p>You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.-<br>Click the link below to reset your password.</p>-{% endblocktrans %}--{{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}--{% blocktrans context "Set password for staff member e-mail text" %}-<p>This is an automatically generated email, please do not reply.</p>-{% endblocktrans %}-{% endblock content %}diff --git a/templates/templated_email/html/source/dashboard/staff/set_password.mjml b/templates/templated_email/html/source/dashboard/staff/set_password.mjmlnew file mode 100644index 0000000000..c1c9bd921d--- /dev/null+++ b/templates/templated_email/html/source/dashboard/staff/set_password.mjml@@ -0,0 +1,36 @@+<mjml>+ <mj-head>+ <mj-include path="../../shared/styles" />+ </mj-head>+ <mj-body>+ <mj-container>+ <mj-section css-class="no-display">+ <mj-column>+ <mj-text>+ {% load i18n %}+ </mj-text>+ </mj-column>+ </mj-section>+ <mj-include path="../../shared/header" />+ <mj-section>+ <mj-column>+ <mj-text font-size="16px">+ {% trans "Hi!" context "Set password for staff member e-mail text" %}+ </mj-text>+ <mj-text>+ {% blocktrans context "Set password for staff member e-mail text" %}+ You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.<br/>+ Click the link below to set up your password.+ {% endblocktrans %}+ </mj-text>+ <mj-text>+ <a href="{{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}">+ {{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}+ </a>+ </mj-text>+ </mj-column>+ </mj-section>+ <mj-include path="../../shared/footer" />+ </mj-container>+ </mj-body>+</mjml>