1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-12-28 23:38:57 +00:00

added account settings page

This commit is contained in:
Lynne Megido 2019-08-30 13:56:28 +10:00
parent a5c1092f37
commit 3537e28933
3 changed files with 83 additions and 1 deletions

View file

@ -1,6 +1,6 @@
body {
font-family: "Roboto", sans-serif;
margin: 2.5%;
margin: 2%;
background-color: #282c37;
color: white;
}

78
templates/settings.html Normal file
View file

@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FediBooks</title>
{% include 'imports.html' %}
</head>
<body>
<div class="container">
<h1 class="thin centred">Account settings</h1>
</div>
<div class="container">
<form action="/do/bot/edit" method="post" class="full-width">
<div class="container light">
<h2 class="thin centred">Login settings</h2>
<p class="centred">Update your email and password here.</p>
</div>
<div class="row">
<label for="email" class="large">Email address</label>
<input type="email" name="email" value="me@my.site">
</div>
<div class="row">
<label for="password" class="large">Password</label>
<input type="password" name="password" placeholder="Unchanged">
</div>
<div class="container light">
<h2 class="thin centred">Contact settings</h2>
<p class="centred">When should FediBooks send you email?</p>
</div>
<div class="row">
<label for="download-error" class="large">When my bot(s) can't get new posts</label>
<select name="download-error">
<option value="once">Once</option>
<option value="every-time">Every time</option>
<option value="never">Never</option>
</select>
</div>
<div class="row">
<label for="post-error" class="large">When my bot(s) can't submit new posts</label>
<select name="post-error">
<option value="once">Once</option>
<option value="every-time">Every time</option>
<option value="never">Never</option>
</select>
</div>
<div class="row">
<label for="generation-error" class="large">When my bot(s) encounter an error generating new posts</label>
<select name="generation-error">
<option value="once">Once</option>
<option value="every-time">Every time</option>
<option value="never">Never</option>
</select>
</div>
<div class="row">
<label for="reply-error" class="large">When my bot(s) can't send replies</label>
<select name="reply-error">
<option value="once">Once</option>
<option value="every-time">Every time</option>
<option value="never">Never</option>
</select>
</div>
<div class="container centred">
<button class="button btn-primary"><i class="fas fa-save"></i> Save</button>
<a href="/" class="button btn-secondary"><i class="fas fa-times"></i> Cancel</a>
<a href="#" class="button btn-secondary"><i class="fas fa-question"></i> Help</a>
</div>
</form>
</div>
{% include 'footer.html' %}
</body>
</html>

View file

@ -23,6 +23,10 @@ def show_login_page():
def show_signup_page():
return render_template("login.html", signup = True)
@app.route("/settings")
def settings():
return render_template("settings.html")
@app.route("/bot/edit/<id>")
def bot_edit(id):
return render_template("bot_edit.html")