From 6e4963df0bfe016f93ffe1da3aea694d39ef274f Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 30 Aug 2019 21:28:34 +1000 Subject: [PATCH] added bot deletion page --- templates/bot_delete.html | 28 ++++++++++++++++++++++++++++ webui.py | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 templates/bot_delete.html diff --git a/templates/bot_delete.html b/templates/bot_delete.html new file mode 100644 index 0000000..c9d86ad --- /dev/null +++ b/templates/bot_delete.html @@ -0,0 +1,28 @@ + + + + + FediBooks + {% include 'imports.html' %} + + + +
+

Delete bot

+
+
+ +
+
+
+

Are you sure you want to permanently delete bot name?

+

The account on instan.ce will remain open, but your bot will stop posting from it.

+ + +
+
+
+ + {% include 'footer.html' %} + + diff --git a/webui.py b/webui.py index 9c16207..36a2b5d 100644 --- a/webui.py +++ b/webui.py @@ -31,6 +31,10 @@ def settings(): def bot_edit(id): return render_template("bot_edit.html") +@app.route("/bot/delete/") +def bot_delete(id): + return render_template("bot_delete.html") + @app.route("/bot/create/") def bot_create(): session['step'] = 4