Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Dashboard staff HTML e-mail templates

Anna Siwik30241707a438
diff --git a/templates/templated_email/dashboard/staff/promote_customer.email b/templates/templated_email/dashboard/staff/promote_customer.email
index c74b8687a1..77a553d67d 100644
--- a/templates/templated_email/dashboard/staff/promote_customer.email
+++ b/templates/templated_email/dashboard/staff/promote_customer.email
@@ -2,9 +2,16 @@
{% block subject %}{% blocktrans %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
{% block plain %}
-{% blocktrans %}You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}
+{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
+Hi!
-{% blocktrans %}Thank you for using {{ site_name }}!
-{{ domain }}
+You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}
+
+{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
+This is an automatically generated email, please do not reply.
{% endblocktrans %}
{% endblock %}
+
+{% block html %}
+{% include 'templated_email/html/dashboard/staff/promote_customer.html' %}
+{% endblock %}
diff --git a/templates/templated_email/dashboard/staff/set_password.email b/templates/templated_email/dashboard/staff/set_password.email
index 4a0811daef..fb3c0d3cb7 100644
--- a/templates/templated_email/dashboard/staff/set_password.email
+++ b/templates/templated_email/dashboard/staff/set_password.email
@@ -1,13 +1,21 @@
{% load i18n %}
-{% block subject %}{% blocktrans %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
+{% block subject %}{% blocktrans context "Set password for staff member e-mail title" %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
{% block plain %}
-{% blocktrans %}You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.
-Click the link below to reset your password.{% endblocktrans %}
+{% blocktrans context "Set password for staff member e-mail text" %}
+Hi!
+
+You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.
+Click the link below to reset your password.
+{% endblocktrans %}
{{ protocol}}://{{ domain }}{% url 'account_reset_password_confirm' uidb64=uid token=token %}
-{% blocktrans %}Thank you for using {{ site_name }}!
-{{ domain }}
+{% blocktrans context "Set password for staff member e-mail text" %}
+This is an automatically generated email, please do not reply.
{% endblocktrans %}
{% endblock %}
+
+{% block html %}
+{% include 'templated_email/html/dashboard/staff/set_password.html' %}
+{% endblock %}
diff --git a/templates/templated_email/html/dashboard/staff/promote_customer.html b/templates/templated_email/html/dashboard/staff/promote_customer.html
new file mode 100644
index 0000000000..a2f4620fbc
--- /dev/null
+++ b/templates/templated_email/html/dashboard/staff/promote_customer.html
@@ -0,0 +1,12 @@
+{% extends "templated_email/html/base.html" %}
+{% load i18n %}
+
+{% block content %}
+{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
+<p>Hi!</p>
+
+<p>You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.</p>
+
+<p>This is an automatically generated email, please do not reply.</p>
+{% endblocktrans %}
+{% endblock content %}
diff --git a/templates/templated_email/html/dashboard/staff/set_password.html b/templates/templated_email/html/dashboard/staff/set_password.html
new file mode 100644
index 0000000000..1c057e4632
--- /dev/null
+++ b/templates/templated_email/html/dashboard/staff/set_password.html
@@ -0,0 +1,17 @@
+{% 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 %}