From ce6572b81b015e922b9566929ad1c1f3ea5b364e Mon Sep 17 00:00:00 2001 From: Karl Date: Mon, 14 Jul 2025 11:45:08 +0100 Subject: [PATCH] string entry --- app.py | 2 +- templates/add_account.html | 45 +++++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d5307b9..35f9041 100644 --- a/app.py +++ b/app.py @@ -165,7 +165,7 @@ def add_account(): return redirect(url_for("user_accounts")) return render_template("add_account.html") - return render_template("add_account.html", ocr_enabled=app.config.get("OCR_ENABLED")) + return render_template("add_account.html", ocr_enabled=app.config.get("OCR_ENABLED"), text_input_enabled=app.config.get("TEXT_INPUT_ENABLED")) @app.route("/accounts/delete", methods=["POST"]) diff --git a/templates/add_account.html b/templates/add_account.html index e4641a4..dbd0834 100644 --- a/templates/add_account.html +++ b/templates/add_account.html @@ -88,6 +88,14 @@ {% endif %} + {% if text_input_enabled %} +
+

Load Details Via Text

+
+ + +
+ {% endif %}