mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
added bot deletion page
This commit is contained in:
parent
6093fd6f27
commit
6e4963df0b
2 changed files with 32 additions and 0 deletions
28
templates/bot_delete.html
Normal file
28
templates/bot_delete.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>FediBooks</title>
|
||||||
|
{% include 'imports.html' %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container centred">
|
||||||
|
<h1 class="thin centred">Delete bot</h1>
|
||||||
|
<div class="bot-icon"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container centred">
|
||||||
|
<form>
|
||||||
|
<div class="container centred">
|
||||||
|
<p>Are you sure you want to <strong>permanently</strong> delete bot name?</p>
|
||||||
|
<p>The account on instan.ce will remain open, but your bot will stop posting from it.</p>
|
||||||
|
<button class="button btn-secondary"><i class="fas fa-times"></i> Cancel</button>
|
||||||
|
<button class="button btn-dangerous"><i class="fas fa-trash"></i> Delete bot</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% include 'footer.html' %}
|
||||||
|
</body>
|
||||||
|
</html>
|
4
webui.py
4
webui.py
|
@ -31,6 +31,10 @@ def settings():
|
||||||
def bot_edit(id):
|
def bot_edit(id):
|
||||||
return render_template("bot_edit.html")
|
return render_template("bot_edit.html")
|
||||||
|
|
||||||
|
@app.route("/bot/delete/<id>")
|
||||||
|
def bot_delete(id):
|
||||||
|
return render_template("bot_delete.html")
|
||||||
|
|
||||||
@app.route("/bot/create/")
|
@app.route("/bot/create/")
|
||||||
def bot_create():
|
def bot_create():
|
||||||
session['step'] = 4
|
session['step'] = 4
|
||||||
|
|
Loading…
Reference in a new issue