Update web/templates/stats.html
This commit is contained in:
@@ -104,5 +104,25 @@
|
|||||||
Tip: you can pass <code>?limit=1000</code> on the preview URL to test a subset.
|
Tip: you can pass <code>?limit=1000</code> on the preview URL to test a subset.
|
||||||
</div>
|
</div>
|
||||||
</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>. Non‑JW 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">Dry‑run 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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user