Template
## Summary - Closes #9. Port shop-gated buyer accounts (register/login/profile, password reset, order history), purchase-gated reviews, and Stripe customer ids. Cards stay on Stripe. - Slim public contact form to email + interest + message. Shipping tracking status, scan events, paste-in numbers, and EasyPost webhook when FEATURE_SHIPPING is on. - Add template-neutral `seed_demo` (generic SKUs, demo shoppers, guest orders, tracking stubs). Prod refused. `--reset` deletes tagged demo rows after invoices. ## Test plan - [ ] `cd site && uv run python manage.py test` (173 tests passed locally) - [ ] Shop on: `/account/register`, login, profile, password reset, claim guest orders by email - [ ] Shop off: `/account/` URLs absent; Sign in / Account links hidden - [ ] Checkout as logged-in buyer stores `Order.user` and Stripe customer id; product review only after paid purchase - [ ] Shipping on: portal paste-in tracking + EasyPost webhook updates status; shipping off: orders still work without tracking UI - [ ] `seed_demo` refused in prod; `--reset` rebuilds tagged catalog/shoppers without deleting staff invoices Reviewed-on: #10
25 lines
1.2 KiB
HTML
25 lines
1.2 KiB
HTML
{% extends "emails/base_email.html" %}
|
|
|
|
{% block title %}New Contact Request{% endblock %}
|
|
|
|
{% block content %}
|
|
<p style="margin:0 0 16px;color:#212121;">Hello,</p>
|
|
<p style="margin:0 0 24px;color:#212121;">A new contact request was submitted on the site.</p>
|
|
|
|
<p class="field-label" style="color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:0.6px;margin:0 0 4px;">Email</p>
|
|
<p class="field-value" style="color:#212121;font-size:15px;margin:0 0 16px;">
|
|
<a href="mailto:{{ email }}" style="color:#00626c;text-decoration:none;">{{ email }}</a>
|
|
</p>
|
|
|
|
<p class="field-label" style="color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:0.6px;margin:0 0 4px;">Message</p>
|
|
<p class="field-value" style="color:#212121;font-size:15px;margin:0 0 16px;white-space:pre-wrap;">{{ message }}</p>
|
|
|
|
{% if portal_url %}
|
|
<p style="margin:24px 0 0;">
|
|
<a class="email-btn" href="{{ portal_url }}" style="display:inline-block;padding:12px 24px;background-color:#00626c;color:#ffffff !important;text-decoration:none;border-radius:4px;font-weight:600;font-size:14px;">View in portal</a>
|
|
</p>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block footer_note %}This is an automated message from {{ brand_name }}.{% endblock %}
|