Update web/templates/stats.html

This commit is contained in:
Joshua Laymon 2025-08-14 19:34:40 +00:00
parent f4a1e9d092
commit 5580846429

View File

@ -104,5 +104,25 @@
Tip: you can pass <code>?limit=1000</code> on the preview URL to test a subset.
</div>
</div>
<!-- Source Normalizer card (like Scripture tool) -->
<div class="search-form" style="margin-top:16px;">
<h3 style="margin:0 0 10px;">Tools — Source Normalizer</h3>
<p class="small muted" style="margin:0 0 8px;">
Convert Watchtower/Awake!/Yearbook/KM references (e.g., “March 15, 2013 WT page 14”) into WOL short-codes
like <code>w13 3/15 p.14</code>. NonJW sources are left unchanged.
</p>
<form method="get" action="{% url 'normalize_source' %}" style="display:inline;">
<input type="number" min="0" name="limit" placeholder="Preview limit (optional)" style="border:1px solid var(--border); border-radius:8px; padding:6px 8px;">
<button class="btn">Dryrun Preview</button>
</form>
<form method="post" action="{% url 'normalize_source' %}" style="display:inline; margin-left:8px;">
{% csrf_token %}
<button class="btn btn-danger" onclick="return confirm('Apply normalization to all entries? This cannot be undone. Make a backup first.')">
Apply to All
</button>
</form>
</div>
</div>
{% endblock %}