diff --git a/web/templates/normalize_source_result.html b/web/templates/normalize_source_result.html index fcc96de..246be7c 100644 --- a/web/templates/normalize_source_result.html +++ b/web/templates/normalize_source_result.html @@ -3,44 +3,86 @@ {% block content %}
-
-

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

-

- {{ changed }} {{ applied|yesno:"entries changed,entries would change" }}; {{ warnings_total }} warnings. - {% if limit %} (Limited to first {{ limit }} entries){% endif %} -

+

Source Normalizer — Results

+
+
+
+
Mode
+
+ {% if applied %}Applied to Database{% else %}Preview (dry‑run){% endif %} +
+
+
+
Entries {% if applied %}changed{% else %}that would change{% endif %}
+
{{ changed }}
+
+
+
Preview Count
+
{{ preview|length }}
+
+
+ {% if limit %} +
+ Preview limited to first {{ limit }} entries matched. +
+ {% endif %} +
+ +
+
Preview of Changes (first {{ preview|length }})
{% if preview %} -
- +
+
- - - - + + + + + - {% for id, orig, norm in preview %} + {% for id, original, normalized in preview %} - - - + + + + {% endfor %}
IDOriginalNormalized
IDOriginalNormalizedView
{{ id }}{{ orig }}{{ norm }}{{ id }} + {{ original|default:"—" }} + + {{ normalized|default:"—" }} + + Open +
+
+ Table shows up to the first 100 changes for readability. +
{% else %}
-
No changes found
-
Nothing to preview for this selection.
+
No differences found
+
Nothing would change with the current normalization rules.
{% endif %} +
-
- Back to Stats -
+
+ ← Back to Statistics + + {% if not applied %} +
+ {% csrf_token %} + +
+ {% endif %}
{% endblock %} \ No newline at end of file