From 5fb0d700491a4d1d1e4854c94e0ac402d9344a89 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sat, 16 Aug 2025 16:44:33 +0000 Subject: [PATCH] Add web/templates/normalize_subjects_result.html --- web/templates/normalize_subjects_result.html | 72 ++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 web/templates/normalize_subjects_result.html diff --git a/web/templates/normalize_subjects_result.html b/web/templates/normalize_subjects_result.html new file mode 100644 index 0000000..e93038d --- /dev/null +++ b/web/templates/normalize_subjects_result.html @@ -0,0 +1,72 @@ +{% extends "base.html" %} +{% block body_class %}themed-bg{% endblock %} + +{% block content %} +
+

Subject Normalizer

+ +
+
+
+
Mode
+
+ {% if applied %}Applied (saved to DB){% else %}Preview (dry-run){% endif %} +
+
+
+
Entries changed{% if not applied %} (would change){% endif %}
+
{{ changed }}
+
+
+
Warnings
+
{{ warnings_total }}
+
+
+ {% if limit %} +
Preview limit: {{ limit }}
+ {% endif %} +
+ +
+
Preview (first 100 changes)
+
+ Showing the first 100 entries that {% if applied %}were{% else %}would be{% endif %} changed. +
+
+ + + + + + {% for row in preview %} + + + + + + {% empty %} + + {% endfor %} + +
IDBeforeAfter
{{ row.0 }}{{ row.1 }}{{ row.2 }}
No changes detected.
+
+ +
+ +
+ {% if not applied and user.is_authenticated and user.is_staff %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+
+{% endblock %} \ No newline at end of file