diff --git a/static/style.css b/static/style.css index 5c638ca..4fd52b3 100644 --- a/static/style.css +++ b/static/style.css @@ -169,8 +169,13 @@ input:focus, select:focus, textarea:focus { border: 3px mediumpurple solid; } +input[type="checkbox"] { + height: 1.4em; +} + label, input { flex-basis: 0; + text-align: left; } label { flex-grow: 1; diff --git a/templates/bot_edit.html b/templates/bot_edit.html index 84a3357..8c61abc 100644 --- a/templates/bot_edit.html +++ b/templates/bot_edit.html @@ -11,55 +11,58 @@

Configure bot

@botname@example.com

+ + {% include 'error.html' %} + {% include 'success.html' %}
-
+
- +
- +
- +
- +
- +
diff --git a/templates/settings.html b/templates/settings.html index f51cdbd..51b720c 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -13,7 +13,7 @@ {% include 'error.html' %} {% include 'success.html' %} - +
@@ -27,7 +27,7 @@
- +
diff --git a/webui.py b/webui.py index 82eb690..7ba558b 100644 --- a/webui.py +++ b/webui.py @@ -137,7 +137,9 @@ def settings(): @app.route("/bot/edit/") def bot_edit(id): - return render_template("coming_soon.html") + dc = mysql.connection.cursor(MySQLdb.cursors.DictCursor) + dc.execute("SELECT * FROM bots WHERE handle = %s", (id,)) + return render_template("bot_edit.html", bot = dc.fetchone()) @app.route("/bot/delete/", methods=['GET', 'POST']) def bot_delete(id):