From 6f2a59ccc04bb5f6903e28b669cb1aeaf69ca4b8 Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 3 Oct 2024 15:17:19 +0200 Subject: [PATCH] chg: [tags search] search qrcode by tags --- var/www/blueprints/tags_ui.py | 8 +++++++ var/www/templates/tags/menu_sidebar.html | 8 ++++++- .../templates/tags/search_obj_by_tags.html | 24 ++++++++++++++++++- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/var/www/blueprints/tags_ui.py b/var/www/blueprints/tags_ui.py index 6e5cbea5..332b0041 100644 --- a/var/www/blueprints/tags_ui.py +++ b/var/www/blueprints/tags_ui.py @@ -309,6 +309,14 @@ def tags_search_ocrs(): dict_tagged = {"object_type": object_type, "object_name": object_type.title() + "s"} return render_template("tags/search_obj_by_tags.html", bootstrap_label=bootstrap_label, dict_tagged=dict_tagged) +@tags_ui.route('/tag/search/qrcode') +@login_required +@login_read_only +def tags_search_qrcodes(): + object_type = 'qrcode' + dict_tagged = {"object_type": object_type, "object_name": object_type.title() + "s"} + return render_template("tags/search_obj_by_tags.html", bootstrap_label=bootstrap_label, dict_tagged=dict_tagged) + @tags_ui.route('/tag/search/domain') @login_required @login_read_only diff --git a/var/www/templates/tags/menu_sidebar.html b/var/www/templates/tags/menu_sidebar.html index 198cb53b..641c0600 100644 --- a/var/www/templates/tags/menu_sidebar.html +++ b/var/www/templates/tags/menu_sidebar.html @@ -29,11 +29,17 @@ +