1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-12-30 16:18:57 +00:00
FediBooks/app/templates/settings.html

90 lines
3.4 KiB
HTML
Raw Normal View History

2019-08-30 03:56:28 +00:00
<!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>
2019-09-09 12:08:43 +00:00
{% include 'error.html' %}
{% include 'success.html' %}
2019-09-10 03:36:36 +00:00
2019-08-30 03:56:28 +00:00
<div class="container">
2019-09-09 12:08:43 +00:00
<form method="POST" class="full-width">
2019-08-30 03:56:28 +00:00
<div class="container light">
<h2 class="thin centred">Login settings</h2>
2019-12-19 09:00:54 +00:00
<p class="centred">Update your email and password here, or close your account.</p>
2019-08-30 03:56:28 +00:00
</div>
<div class="row">
<label for="email" class="large">Email address</label>
2019-09-02 07:49:39 +00:00
<input type="email" name="email" value="{{ user['email'] }}">
2019-08-30 03:56:28 +00:00
</div>
<div class="row">
<label for="password" class="large">Password</label>
2019-09-10 03:36:36 +00:00
<input type="password" name="password"pattern=".{8,}" placeholder="Unchanged">
2019-08-30 03:56:28 +00:00
</div>
2019-12-19 09:00:54 +00:00
<div class="row">
<label for="delete" class="large">Delete account</label>
<a name="delete" class="button btn-dangerous" href="/delete"><i class="fas fa-trash"></i> Close account</a>
</div>
2019-08-30 03:56:28 +00:00
<div class="container light">
<h2 class="thin centred">Contact settings</h2>
<p class="centred">When should FediBooks send you email?</p>
</div>
2019-09-09 12:08:43 +00:00
<div class="error err-small">
Note: This feature isn't ready yet. As of now, FediBooks will not send you email.
</div>
2019-08-30 03:56:28 +00:00
<div class="row">
2019-09-02 07:49:39 +00:00
<label for="fetch-error" class="large">When my bot(s) can't get new posts</label>
<select name="fetch-error">
<option value="always" {{ 'selected' if user['fetch'] == "always"}}>Always</option>
<option value="once" {{ 'selected' if user['fetch'] == "once"}}>Once</option>
<option value="never" {{ 'selected' if user['fetch'] == "never"}}>Never</option>
2019-08-30 03:56:28 +00:00
</select>
</div>
<div class="row">
2019-09-02 07:49:39 +00:00
<label for="submit-error" class="large">When my bot(s) can't submit new posts</label>
<select name="submit-error">
<option value="always" {{ 'selected' if user['submit'] == "always"}}>Always</option>
<option value="once" {{ 'selected' if user['submit'] == "once"}}>Once</option>
<option value="never" {{ 'selected' if user['submit'] == "never"}}>Never</option>
2019-08-30 03:56:28 +00:00
</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">
2019-09-02 07:49:39 +00:00
<option value="always" {{ 'selected' if user['generation'] == "always"}}>Always</option>
<option value="once" {{ 'selected' if user['generation'] == "once"}}>Once</option>
<option value="never" {{ 'selected' if user['generation'] == "never"}}>Never</option>
2019-08-30 03:56:28 +00:00
</select>
</div>
<div class="row">
<label for="reply-error" class="large">When my bot(s) can't send replies</label>
<select name="reply-error">
2019-09-02 07:49:39 +00:00
<option value="always" {{ 'selected' if user['reply'] == "always"}}>Always</option>
<option value="once" {{ 'selected' if user['reply'] == "once"}}>Once</option>
<option value="never" {{ 'selected' if user['reply'] == "never"}}>Never</option>
2019-08-30 03:56:28 +00:00
</select>
</div>
<div class="container centred">
2019-12-19 09:00:54 +00:00
<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="/help/settings" target="_blank" class="button btn-secondary"><i class="fas fa-question"></i> Help</a>
</div>
2019-08-30 03:56:28 +00:00
</form>
</div>
{% include 'footer.html' %}
</body>
</html>