diff --git a/templates/emails/rejected.body.html b/templates/emails/rejected.body.html new file mode 100644 index 0000000..323e95a --- /dev/null +++ b/templates/emails/rejected.body.html @@ -0,0 +1,53 @@ +{% extends "emails/_base.html" %} +{% block body %} +
+ Unfortunately your submission {{ submission.slug }} was rejected{% if previous_status %} during {{ previous_status }}{% endif %}. +
+ +{# Status pill -- coloured from `Submission.STATUS_EMAIL_COLORS` (red for `rejected`). #} +| + + {{ submission.get_status_display }} + + | +
|
+ + Reason + +{{ submission.operator_notes|default:"(no reason recorded)" }} + |
+
+ You're welcome to fix the issue and submit a new print. This rejected submission will be removed from our records in 24 hours. +
+ +| + + Try a new submission + + | +
+ Think this rejection was a mistake? Reply to this email or reach out to the operators at hamlab.lt. +
+{% endblock %} diff --git a/templates/emails/rejected.body.txt b/templates/emails/rejected.body.txt new file mode 100644 index 0000000..d58933c --- /dev/null +++ b/templates/emails/rejected.body.txt @@ -0,0 +1,17 @@ +Hi, + +Unfortunately your hamprint submission "{{ submission.slug }}" was rejected{% if previous_status %} during {{ previous_status }}{% endif %}. + +Reason: + + {{ submission.operator_notes|default:"(no reason recorded)" }} + +You're welcome to fix the issue and submit a new print -- the form is at +{{ site_url }}/submit/. This rejected submission will be removed from our +records in 24 hours. + +If you think this rejection was a mistake, reply to this email or reach +out to the operators at hamlab.lt. + +— hamprint +{{ site_url }} diff --git a/templates/emails/rejected.subject.txt b/templates/emails/rejected.subject.txt new file mode 100644 index 0000000..214d322 --- /dev/null +++ b/templates/emails/rejected.subject.txt @@ -0,0 +1 @@ +Your hamprint submission {{ submission.slug }} was rejected diff --git a/templates/emails/status_update.body.html b/templates/emails/status_update.body.html deleted file mode 100644 index 9fc0157..0000000 --- a/templates/emails/status_update.body.html +++ /dev/null @@ -1,55 +0,0 @@ -{% extends "emails/_base.html" %} -{% block body %} -- Your submission {{ submission.slug }} has moved to: -
- -{% comment %} - Status pill -- per-status hex colours from `Submission.STATUS_EMAIL_COLORS`. - Wrapped in a table so Outlook respects padding + border-radius. -{% endcomment %} -| - - {{ submission.get_status_display }} - - | -
- Previously: {{ previous_status }} -
-{% endif %} - -{% if submission.operator_notes %} -|
- - Note from the operator - -{{ submission.operator_notes }} - |
-
| - - View submission - - | -
- Direct link: {{ detail_url }} -
-{% endblock %} diff --git a/templates/emails/status_update.body.txt b/templates/emails/status_update.body.txt deleted file mode 100644 index e39b988..0000000 --- a/templates/emails/status_update.body.txt +++ /dev/null @@ -1,16 +0,0 @@ -Hi, - -Your hamprint submission "{{ submission.slug }}" has moved to: - - {{ submission.get_status_display }}{% if previous_status %} (was: {{ previous_status }}){% endif %} - -{% if submission.operator_notes %}A note from the operator: - - {{ submission.operator_notes }} - -{% endif %}You can see the latest state at: - - {{ detail_url }} - -— hamprint -{{ site_url }} diff --git a/templates/emails/status_update.subject.txt b/templates/emails/status_update.subject.txt deleted file mode 100644 index 565d79f..0000000 --- a/templates/emails/status_update.subject.txt +++ /dev/null @@ -1 +0,0 @@ -hamprint update: {{ submission.slug }} is now {{ submission.get_status_display }}