1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-17 21:28:59 +00:00
FediBooks/app/templates/bot/create.html

59 lines
2.8 KiB
HTML
Raw Normal View History

2019-08-30 08:52:13 +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">Create bot</h1>
</div>
{% include 'error.html' %}
2020-01-20 02:22:07 +00:00
2019-08-30 08:52:13 +00:00
<div class="container centred">
2019-09-10 06:10:58 +00:00
<form method="POST">
2019-08-30 09:02:48 +00:00
{% if session['step'] == 1 %}
2019-08-30 08:52:13 +00:00
<label for="instance" class="important">What instance will your bot's account be on?</label>
<input type="text" name="instance" class="full-width" placeholder="botsin.space">
<br>
2019-08-30 09:02:48 +00:00
{% elif session['step'] == 2 %}
<h2 class="thin centred">Detected instance type: {{ session['instance_type'] }}</h2>
2019-09-12 11:56:41 +00:00
<p>{{ session['instance'] }} is a {{ session['instance_type'] }} instance. {% if session['instance_type'] == 'Pleroma' %}Pleroma's support for the Mastodon API is incomplete, and some functions may not work correctly. Additionally, FediBooks will need to request full read and write access to your account, as Pleroma does not support fine-grained app permissions.{% else %}{{ session['instance_type'] }} instances are fully supported, and your bot will have all functionality available.{% endif %}</p>
2019-08-30 09:02:48 +00:00
2019-08-30 09:08:03 +00:00
{% elif session['step'] == 3 %}
<p>You now need to give your bot access to the {{ session['instance'] }} account you have created for it. If you have not yet created an account on {{ session['instance'] }} for your bot to use, please do so now.</p>
2020-01-20 02:22:07 +00:00
<p>In another tab, sign in to the {{ session['instance'] }} account you want your bot to use. Once that's done, click next to begin the authorisation process.</p>
2019-08-30 09:08:03 +00:00
2019-08-30 09:24:58 +00:00
{% elif session['step'] == 4 %}
<h2 class="thin centred">Congratulations!</h2>
2019-09-09 09:56:19 +00:00
<p>FediBooks has successfully authenticated with your instance, and your bot is ready to be configured. Click finish to return to the bot management screen.</p>
<p><strong>Important:</strong> To get your bot working, you need to add at least one account for it to learn from. You can do so by clicking the <i class="fas fa-users"></i> button. To configure settings such as posting frequency and content warnings, click the <i class="fas fa-cog"></i> button.</p>
2019-08-30 09:24:58 +00:00
2019-09-01 04:59:21 +00:00
{% else %}
<h2 class="thin centred">Error</h2>
<p>An unknown error has occurred.</p>
2019-08-30 09:02:48 +00:00
{% endif %}
2019-08-30 08:52:13 +00:00
<div class="container centred">
2019-09-01 04:51:14 +00:00
<a href="/" class="button btn-secondary"><i class="fas fa-times"></i> Cancel</a>
2019-09-01 04:43:05 +00:00
{% if session['step'] != 1 %}
2019-09-02 05:35:02 +00:00
<a href="/bot/create/back" class="button btn-secondary"><i class="fas fa-arrow-left"></i> Back</a>
2019-09-01 04:43:05 +00:00
{% endif %}
2019-09-02 06:36:42 +00:00
{% if session['step'] < 4 %}
2019-08-30 09:02:48 +00:00
<button class="button btn-primary"><i class="fas fa-arrow-right"></i> Next</button>
2019-09-02 03:07:46 +00:00
{% else %}
<a href="/" class="button btn-primary"><i class="fas fa-check"></i> Finish</a>
{% endif %}
2019-08-30 09:02:48 +00:00
</div>
2019-08-30 08:52:13 +00:00
</form>
</div>
{% include 'footer.html' %}
</body>
</html>