Remove generic status update email template

This commit is contained in:
2026-05-15 00:07:55 +03:00
parent 46fc07a1ae
commit 219f0a5259
6 changed files with 71 additions and 72 deletions

View File

@@ -0,0 +1,53 @@
{% extends "emails/_base.html" %}
{% block body %}
<h1 style="margin:0 0 12px 0; font-size:22px; font-weight:700; color:#991b1b; letter-spacing:-0.01em;">Submission rejected</h1>
<p style="margin:0 0 16px 0; color:#334155; font-size:15px; line-height:1.55;">
Unfortunately your submission <strong style="font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#92400e; font-weight:700;">{{ submission.slug }}</strong> was rejected{% if previous_status %} during <em>{{ previous_status }}</em>{% endif %}.
</p>
{# Status pill -- coloured from `Submission.STATUS_EMAIL_COLORS` (red for `rejected`). #}
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px 0;">
<tr>
<td style="padding:6px 14px; background-color:{{ submission.status_email_style.bg }}; border-radius:9999px;">
<span style="color:{{ submission.status_email_style.fg }}; font-weight:600; font-size:14px; letter-spacing:0.01em;">
{{ submission.get_status_display }}
</span>
</td>
</tr>
</table>
{% comment %}
Reason callout -- always rendered. Falls back to a placeholder if
operator_notes is somehow blank (shouldn't happen for a rejected row but
we're defensive).
{% endcomment %}
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="margin:0 0 24px 0;">
<tr>
<td style="padding:16px; background-color:#fef2f2; border-left:3px solid #ef4444; border-radius:0 4px 4px 0;">
<p style="margin:0 0 6px 0; font-size:11px; font-weight:600; color:#991b1b; text-transform:uppercase; letter-spacing:0.06em;">
Reason
</p>
<p style="margin:0; color:#334155; font-size:14px; line-height:1.55; white-space:pre-line;">{{ submission.operator_notes|default:"(no reason recorded)" }}</p>
</td>
</tr>
</table>
<p style="margin:0 0 20px 0; color:#334155; font-size:15px; line-height:1.55;">
You're welcome to fix the issue and submit a new print. This rejected submission will be removed from our records in 24 hours.
</p>
<table role="presentation" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background-color:#f59e0b; border-radius:6px;">
<a href="{{ site_url }}/submit/" style="display:inline-block; padding:12px 24px; color:#ffffff; font-weight:600; font-size:15px; text-decoration:none; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;">
Try a new submission
</a>
</td>
</tr>
</table>
<p style="margin:18px 0 0 0; font-size:13px; color:#64748b; line-height:1.55;">
Think this rejection was a mistake? Reply to this email or reach out to the operators at <a href="https://hamlab.lt" style="color:#475569; text-decoration:underline;">hamlab.lt</a>.
</p>
{% endblock %}

View File

@@ -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 }}

View File

@@ -0,0 +1 @@
Your hamprint submission {{ submission.slug }} was rejected

View File

@@ -1,55 +0,0 @@
{% extends "emails/_base.html" %}
{% block body %}
<h1 style="margin:0 0 12px 0; font-size:22px; font-weight:700; color:#0f172a; letter-spacing:-0.01em;">Status update</h1>
<p style="margin:0 0 16px 0; color:#334155; font-size:15px; line-height:1.55;">
Your submission <strong style="font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#92400e; font-weight:700;">{{ submission.slug }}</strong> has moved to:
</p>
{% comment %}
Status pill -- per-status hex colours from `Submission.STATUS_EMAIL_COLORS`.
Wrapped in a table so Outlook respects padding + border-radius.
{% endcomment %}
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px 0;">
<tr>
<td style="padding:6px 14px; background-color:{{ submission.status_email_style.bg }}; border-radius:9999px;">
<span style="color:{{ submission.status_email_style.fg }}; font-weight:600; font-size:14px; letter-spacing:0.01em;">
{{ submission.get_status_display }}
</span>
</td>
</tr>
</table>
{% if previous_status %}
<p style="margin:0 0 20px 0; font-size:13px; color:#64748b;">
Previously: <span style="color:#475569;">{{ previous_status }}</span>
</p>
{% endif %}
{% if submission.operator_notes %}
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="margin:0 0 24px 0;">
<tr>
<td style="padding:16px; background-color:#f8fafc; border-left:3px solid #f59e0b; border-radius:0 4px 4px 0;">
<p style="margin:0 0 6px 0; font-size:11px; font-weight:600; color:#64748b; text-transform:uppercase; letter-spacing:0.06em;">
Note from the operator
</p>
<p style="margin:0; color:#334155; font-size:14px; line-height:1.55; white-space:pre-line;">{{ submission.operator_notes }}</p>
</td>
</tr>
</table>
{% endif %}
<table role="presentation" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background-color:#f59e0b; border-radius:6px;">
<a href="{{ detail_url }}" style="display:inline-block; padding:12px 24px; color:#ffffff; font-weight:600; font-size:15px; text-decoration:none; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;">
View submission
</a>
</td>
</tr>
</table>
<p style="margin:18px 0 0 0; font-size:13px; color:#64748b;">
Direct link: <span style="color:#475569; word-break:break-all; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;">{{ detail_url }}</span>
</p>
{% endblock %}

View File

@@ -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 }}

View File

@@ -1 +0,0 @@
hamprint update: {{ submission.slug }} is now {{ submission.get_status_display }}