From f5534328d3d709565f6d9d3dc198960496fc9449 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Wed, 13 Aug 2025 23:54:21 +0000 Subject: [PATCH] Add web/templates/normalize_result.html --- web/templates/normalize_result.html | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 web/templates/normalize_result.html diff --git a/web/templates/normalize_result.html b/web/templates/normalize_result.html new file mode 100644 index 0000000..5795ef7 --- /dev/null +++ b/web/templates/normalize_result.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} +{% block body_class %}themed-bg{% endblock %} + +{% block content %} +
+

Scripture Normalizer — {{ applied|yesno:"Applied,Dry‑run" }}

+

+ {% if applied %}Changes have been written to the database.{% else %}Preview only — no data was changed.{% endif %} + Changed entries: {{ changed }}. Warnings: {{ warnings_total }}. +

+ +
+
Preview (first 100 changed rows)
+
Format: ID · old → new
+
+ {% for rid, old, new in preview %} +
+
ID {{ rid }}
+
Old: {{ old|default:"—" }}
+
New: {{ new|default:"—" }}
+
+ {% empty %} +
No changes detected for the selected scope.
+ {% endfor %} +
+ +
+ ← Back to Statistics + {% if not applied and user.is_authenticated and user.is_staff %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+{% endblock %} \ No newline at end of file