2019-08-29 13:51:31 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>FediBooks</title>
|
|
|
|
{% include 'imports.html' %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
2019-08-31 10:45:49 +00:00
|
|
|
<h1 class="thin centred">Configure bot</h1>
|
2019-09-10 04:07:44 +00:00
|
|
|
<p class="large centred">{{ bot['handle'] }}</p>
|
2019-08-29 13:51:31 +00:00
|
|
|
</div>
|
2019-09-10 03:36:36 +00:00
|
|
|
|
|
|
|
{% include 'error.html' %}
|
|
|
|
{% include 'success.html' %}
|
2019-09-10 04:07:44 +00:00
|
|
|
|
2019-08-29 13:51:31 +00:00
|
|
|
<div class="container centred">
|
2019-09-10 04:07:44 +00:00
|
|
|
<form method="POST" class="full-width">
|
2019-09-10 03:36:36 +00:00
|
|
|
<!-- <div class="row">
|
2019-08-29 13:51:31 +00:00
|
|
|
<label for="username" class="large">Username</label>
|
2019-08-30 03:39:40 +00:00
|
|
|
<input type="text" name="username" value="Bot Name">
|
2019-09-10 03:36:36 +00:00
|
|
|
</div> -->
|
2019-08-29 13:51:31 +00:00
|
|
|
<div class="row">
|
|
|
|
<label for="freq" class="large">Post frequency (minutes)</label>
|
2019-09-10 03:36:36 +00:00
|
|
|
<input type="number" min="15" max="240" step="5" value="{{ bot['post_frequency'] }}" name="freq">
|
2019-08-29 13:51:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label for="cw" class="large">Content warning (subject)</label>
|
2019-09-10 04:07:44 +00:00
|
|
|
<input type="text" placeholder="None" name="cw" pattern=".{0,128}" title="Content warning cannot exceed 128 characters." value = "{{ bot['content_warning'] if bot['content_warning'] != None else '' }}">
|
2019-08-29 13:51:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2019-08-29 14:33:35 +00:00
|
|
|
<label for="length" class="large">Maximum post length (characters)</label>
|
2019-09-10 03:36:36 +00:00
|
|
|
<input type="number" min="100" max="5000" value="{{ bot['length'] }}" name="length">
|
2019-08-29 13:51:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2019-08-30 07:59:31 +00:00
|
|
|
<label for="fake-mentions" class="large">Fake mentions</label>
|
|
|
|
<select name="fake-mentions">
|
2019-09-10 03:36:36 +00:00
|
|
|
<option value="always" {{ 'selected' if bot['fake_mentions'] == 'always' }}>At any time</option>
|
|
|
|
<option value="middle" {{ 'selected' if bot['fake_mentions'] == 'middle' }}>Only in the middle of posts</option>
|
|
|
|
<option value="never" {{ 'selected' if bot['fake_mentions'] == 'never' }}>Never</option>
|
2019-08-29 13:51:31 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2019-08-30 07:59:31 +00:00
|
|
|
<div class="row">
|
|
|
|
<label for="fake-mention-style" class="large">Fake mention style</label>
|
|
|
|
<select name="fake-mention-style">
|
2019-09-10 03:36:36 +00:00
|
|
|
<option value="full" {{ 'selected' if bot['fake_mentions_full'] }}>@user@instan.ce</option>
|
|
|
|
<option value="brief" {{ 'selected' if not bot['fake_mentions_full'] }}>@user</option>
|
2019-08-30 07:59:31 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2019-08-29 13:51:31 +00:00
|
|
|
<div class="row">
|
2019-08-30 03:18:51 +00:00
|
|
|
<label for="privacy" class="large">Post privacy</label>
|
2019-09-01 01:50:34 +00:00
|
|
|
<select name="privacy">
|
2019-09-10 03:36:36 +00:00
|
|
|
<option value="public" {{ 'selected' if bot['post_privacy'] == 'public' }}>Public</option>
|
|
|
|
<option value="unlisted" {{ 'selected' if bot['post_privacy'] == 'unlisted' }}>Unlisted</option>
|
|
|
|
<option value="followers" {{ 'selected' if bot['post_privacy'] == 'private' }}>Followers only</option>
|
2019-08-29 14:33:35 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label for="cw-learning" class="large">Learn from posts with content warnings (subjects)</label>
|
2019-09-10 03:36:36 +00:00
|
|
|
<input type="checkbox" name="cw-learning" {{ 'checked' if bot['learn_from_cw']}}>
|
2019-08-29 13:51:31 +00:00
|
|
|
</div>
|
2019-09-01 01:53:24 +00:00
|
|
|
<div class="row">
|
|
|
|
<label for="replies" class="large">Enable replies</label>
|
2019-09-10 03:36:36 +00:00
|
|
|
<input type="checkbox" name="replies" {{ 'checked' if bot['replies_enabled']}}>
|
2019-09-01 01:53:24 +00:00
|
|
|
</div>
|
2019-08-30 03:18:51 +00:00
|
|
|
<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>
|
2019-08-29 13:51:31 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include 'footer.html' %}
|
|
|
|
</body>
|
|
|
|
</html>
|