Configure shop app, admin sidebar, media routing, and Stripe dependencies

This commit is contained in:
zach committed 2026-11-24 00:16:35 +00:00
commit 93d83a0d63
188 files changed
+9220

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
{% extends 'admin/base_site.html' %}{% load static %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'editorial-colors.js' %}"></script>{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url 'admin:index' %}">Studio</a> &rsaquo; Homepage Countdown</div>{% endblock %}
{% block content %}
<section class="studio-content-panel studio-timer">
<p>Show the timer beneath your hero or switch to a dedicated cover landing page. Both display your released chapters first. This does not change the separate Coming Soon page or schedule any chapters.</p>
<form method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.non_field_errors }}
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
{% for field in form.visible_fields %}
{% if field.name == 'homepage_countdown_tint' %}
{{ field.errors }}
<p>{{ field.label_tag }}</p>
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#0c1020" aria-label="Pick the landing background tint" hidden></div>
{% elif field.name == 'homepage_countdown_bar_color' %}
<div class="countdown-setting">
{{ field.errors }}{{ field.label_tag }}
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#4395de" aria-label="Pick the countdown progress bar color" hidden></div>
<p>{{ field.help_text }}</p>
</div>
{% elif field.name|slice:":16" != 'homepage_social_' %}
<div class="countdown-setting">{{ field.as_field_group }}</div>
{% endif %}
{% endfor %}
<fieldset class="studio-social-fields">
<legend>Social links below the author’s comment</legend>
<p>Enter your HTTPS profile links. Only platforms with a saved link will appear.</p>
{{ form.homepage_social_color.errors }}
<p>{{ form.homepage_social_color.label_tag }}</p>
<div class="studio-palette-field">{{ form.homepage_social_color }} <input type="color" data-default="#ffdd00" aria-label="Pick the social icon color" hidden></div>
{% for field in form.social_fields %}<div class="countdown-setting">{{ field.as_field_group }}</div>{% endfor %}
</fieldset>
<div class="studio-actions"><button class="studio-button studio-primary" type="submit">Save countdown</button><a class="studio-button" href="{% url 'admin:index' %}">Cancel</a></div>
</form>
</section>
{% endblock %}