Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -0,0 +1,45 @@
|
||||
{% extends 'admin/base_site.html' %}{% load slx_brand %}
|
||||
{% block content %}
|
||||
<div class="traffic-filters">
|
||||
<a href="{% url 'admin:catalog_newslettercampaign_changelist' %}">All campaigns</a>
|
||||
{% if can_edit %}<a href="{{ edit_url }}">Edit draft</a>{% endif %}
|
||||
<a href="{{ signup_url }}">Public signup page</a>
|
||||
</div>
|
||||
<section class="traffic-panel">
|
||||
<p class="kicker">SLX Studio Dispatch · Email preview</p>
|
||||
<h2>{{ campaign.subject }}</h2>
|
||||
{% if campaign.preheader %}<p><strong>Inbox preview:</strong> {{ campaign.preheader }}</p>{% endif %}
|
||||
{{ campaign.body|linebreaks }}
|
||||
{% if campaign.link_url %}<p><a class="studio-button studio-primary" href="{{ campaign.link_url }}">{{ campaign.link_label }}</a></p>{% endif %}
|
||||
<hr><p><span class="studio-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span><br>{{ address|default:'Set a postal address before sending.'|linebreaksbr }}</p>
|
||||
<p>Each live email includes a personal unsubscribe link.</p>
|
||||
</section>
|
||||
{% if campaign.queued_at %}
|
||||
<section class="traffic-panel" style="margin-top:1rem">
|
||||
<h2>Delivery status</h2><p>Queued {{ campaign.queued_at|date:"M j, Y, P" }}. Reload for current totals. SMTP acceptance does not guarantee inbox delivery.</p>
|
||||
<dl>{% for label, count in progress %}<div><dt>{{ label }}</dt><dd>{{ count }}</dd></div>{% endfor %}</dl>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% if not available %}<p><strong>Sending is offline.</strong> Connect an authenticated SMTP relay and set the verified sender, public site address, and postal address.</p>
|
||||
{% elif can_send %}
|
||||
<div class="traffic-grid">
|
||||
<section class="traffic-panel">
|
||||
<h2>Send a test</h2><p>Only the test address below receives this copy.</p>
|
||||
<form method="post">{% csrf_token %}{{ test_form.as_p }}
|
||||
<button class="studio-button" type="submit" name="action" value="test">Send test email</button>
|
||||
</form>
|
||||
</section>
|
||||
{% if can_edit %}
|
||||
<section class="traffic-panel">
|
||||
<h2>Send to subscribers</h2>
|
||||
<p><strong>{{ recipient_count }}</strong> confirmed subscriber{{ recipient_count|pluralize }} now. The worker checks subscription status again before sending each email.</p>
|
||||
<form method="post">{% csrf_token %}
|
||||
<input type="hidden" name="version" value="{{ version }}">
|
||||
<p><label><input type="checkbox" name="confirm" value="yes" required> I reviewed this issue and want to send it to all confirmed subscribers.</label></p>
|
||||
<button class="studio-button studio-primary" type="submit" name="action" value="queue"{% if not recipient_count %} disabled{% endif %}>Queue newsletter</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user