From ecf04ef12bd6c1471e170db450f491eecffd9464 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Fri, 22 Aug 2025 00:14:14 +0000 Subject: [PATCH] Update web/templates/import_result.html --- web/templates/import_result.html | 71 ++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 18 deletions(-) diff --git a/web/templates/import_result.html b/web/templates/import_result.html index 93a1f0f..931609c 100644 --- a/web/templates/import_result.html +++ b/web/templates/import_result.html @@ -1,23 +1,58 @@ {% extends "base.html" %} -{% block title %}Import Result - Illustrations DB{% endblock %} +{% block body_class %}themed-bg{% endblock %} {% block content %} -
-

Import {{ "Preview" if dry_run else "Result" }}

- - {% if report.errors and report.errors|length %} -

Errors

-
{{ report.errors|join("\n") }}
+
+
+

{{ dry_run|yesno:"Dry-run Preview,Import Result" }}

+

{{ report }}

+ + {% if errors %} +

Errors (first {{ errors|length }})

+
    + {% for e in errors %} +
  • {{ e }}
  • + {% endfor %} +
{% endif %} -
- Run again - Done + + {% if rows %} +

Preview (first {{ rows|length }})

+
Truncated fields shown for readability.
+ + + + + + + + + + {% for rownum, r in rows %} + + + + + + + + + + + + + + {% endfor %} + +
#SubjectIllustrationApplicationScriptureSourceTalk TitleTalk #CodeDateDate Edited
{{ rownum }}{{ r.Subject }}{{ r.Illustration }}{{ r.Application }}{{ r.Scripture }}{{ r.Source }}{{ r."Talk Title" }}{{ r."Talk Number" }}{{ r.Code }}{{ r.Date }}{{ r."Date Edited" }}
+ {% endif %} + +
+
+
-{% endblock %} +
+{% endblock %} \ No newline at end of file