Configure PayPal integration and cart checkout error display

This commit is contained in:
Zach committed 2026-12-01 04:20:38 +00:00
1 parent 62065828e1
commit cf07fc5d9b
98 files changed
+1430 -281

No files matched your search

@@ -0,0 +1,10 @@
{% extends "admin/change_form.html" %}
{% load static %}
{% block after_field_sets %}
<h2>Place the marker</h2>
<p>Click or tap the map to set the position, or enter X and Y above as percentages.</p>
<div style="position:relative;max-width:900px">
<img data-studio-map-picker src="{% static 'solterra-map.jpg' %}" width="2048" height="1170" alt="Sol’Terra map" style="display:block;width:100%;height:auto;cursor:crosshair">
<span data-studio-map-pin aria-hidden="true" hidden style="position:absolute;width:16px;height:16px;border:3px solid #ffde31;border-radius:50%;background:#ad1414;transform:translate(-50%,-50%);pointer-events:none"></span>
</div>
{% endblock %}
+1 -1
View File
@@ -3,7 +3,7 @@
{% 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>
<p>Enable the countdown cover landing and upload a cover to combine it with the Sol’Terra map. Choose whether the map appears above or below the countdown content.</p>
<form method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.non_field_errors }}
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
+29 -1
View File
@@ -15,7 +15,7 @@
</div>
<section class="traffic-panel" aria-labelledby="traffic-map-heading">
<h2 id="traffic-map-heading">Where readers are</h2>
{% if not geo_configured %}<p>Connect a GeoLite Country database to locate new visits by country. Earlier and unresolved visits appear as Unknown.</p>{% endif %}
{% if not geo_configured %}<p>Connect a GeoLite2 City database to locate new visits by country. Earlier and unresolved visits appear as Unknown.</p>{% endif %}
<div data-world-map data-map-url="{% static 'world-countries.json' %}"></div>
<p data-map-status aria-live="polite">Select a highlighted country to see its pageviews.</p>
{{ countries|json_script:"country-traffic" }}
@@ -24,6 +24,34 @@
</tbody></table><small>Map boundaries: Natural Earth. Location is approximate.</small>
</section>
<div class="traffic-grid">
<section class="traffic-panel">
<h2>Regions and states</h2>
<table class="traffic-table">
<thead><tr><th scope="col">Country</th><th scope="col">Region / State</th><th scope="col">Views</th></tr></thead>
<tbody>
{% for row in regions %}
<tr><td>{{ row.country|default:'Unknown' }}</td><td>{{ row.region|default:'Unknown' }}</td><td>{{ row.views }}</td></tr>
{% empty %}
<tr><td colspan="3">No region data available yet.</td></tr>
{% endfor %}
</tbody>
</table>
</section>
<section class="traffic-panel">
<h2>Cities</h2>
<table class="traffic-table">
<thead><tr><th scope="col">City</th><th scope="col">Region</th><th scope="col">Country</th><th scope="col">Views</th></tr></thead>
<tbody>
{% for row in cities %}
<tr><td>{{ row.city|default:'Unknown' }}</td><td>{{ row.region|default:'Unknown' }}</td><td>{{ row.country|default:'Unknown' }}</td><td>{{ row.views }}</td></tr>
{% empty %}
<tr><td colspan="4">No city data available yet.</td></tr>
{% endfor %}
</tbody>
</table>
</section>
</div>
<div class="traffic-grid">
<section class="traffic-panel"><h2>Traffic sources</h2><p>Referring origins only. Direct visits and missing referrers are grouped together.</p>
<table class="traffic-table"><thead><tr><th scope="col">Source</th><th scope="col">Views</th></tr></thead><tbody>
{% for row in sources %}<tr><td>{% if row.source == 'internal' %}SLX site{% elif row.source %}<a href="{{ row.source }}" rel="noreferrer noopener" target="_blank">{{ row.source }}</a>{% else %}Direct / unavailable{% endif %}</td><td>{{ row.views }}</td></tr>{% empty %}<tr><td colspan="2">No sources in this range yet.</td></tr>{% endfor %}