FediBooks/app/templates/bot_accounts_add.html

52 lines
1.7 KiB
HTML
Raw Normal View History

2019-09-01 04:41:33 +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">Add account</h1>
2019-09-01 04:41:33 +00:00
</div>
{%include 'error.html' %}
2019-09-01 04:41:33 +00:00
<div class="container centred">
2019-09-10 06:10:58 +00:00
<form method="POST">
2019-09-01 04:41:33 +00:00
{% if session['step'] == 1 %}
<label for="account" class="important">Account handle</label>
<input type="text" name="account" class="full-width" placeholder="@user@example.com">
<br>
{% elif session['step'] == 2 %}
<h2 class="thin centred">Authentication required</h2>
<p>{{ session['instance'] }} requires authentication to view public posts. Ensure you're signed in as {{ session['account'] }}, and click Next. You will be prompted to give FediBooks access to read your posts, which is required for your bot.</p>
{% elif session['step'] == 3 %}
<h2 class="thin centred">Authentication failure</h2>
<p>FediBooks was unable to authenticate with {{ session['instance'] }}.</p>
<p>Click back to try again. If you believe this is in error, you may <a href="https://github.com/Lynnesbian/FediBooks/issues/new/choose">file a bug report</a>.</p>
2019-09-01 04:59:21 +00:00
{% else %}
<h2 class="thin centred">Error</h2>
<p>An unknown error has occurred.</p>
2019-09-01 04:41:33 +00:00
{% endif %}
<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 06:36:42 +00:00
<a href="/bot/accounts/add/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-01 04:41:33 +00:00
<button class="button btn-primary"><i class="fas fa-arrow-right"></i> Next</button>
</div>
</form>
</div>
{% include 'footer.html' %}
</body>
</html>