From f14f8935878c5e32cca8389388abb3b6e397bd88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Fri, 9 Jun 2023 15:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E7=BC=96=E8=BE=91=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/admin.py | 6 ++ js/version.txt | 2 +- templates/admin.html | 16 +++- templates/edit_rule_mobile.html | 156 ++++++++++++++++++++++++++++++++ 4 files changed, 178 insertions(+), 2 deletions(-) create mode 100644 templates/edit_rule_mobile.html diff --git a/controllers/admin.py b/controllers/admin.py index 9da33a0..59f0278 100644 --- a/controllers/admin.py +++ b/controllers/admin.py @@ -94,6 +94,12 @@ def admin_edit_rule(name): return render_template('login.html') return render_template('edit_rule.html', name=name) +@admin.route("/edit2/", methods=['GET']) +def admin_edit2_rule(name): + # print(name) + if not verfy_token(): + return render_template('login.html') + return render_template('edit_rule_mobile.html', name=name) @admin.route("/save_edit/", methods=['POST']) def admin_save_edit_rule(name): diff --git a/js/version.txt b/js/version.txt index e36868a..17c0840 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.43beta4 \ No newline at end of file +3.9.43beta5 \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index 3dd82f1..f7e8387 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -18,10 +18,24 @@ + + + + + + + +
+ + +
+
+ +
+ +
+
+
+ +
+ +
+ +
+ +
+
+
+ + + +
+ + + + + \ No newline at end of file