1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

started bot creation page

This commit is contained in:
Lynne Megido 2019-08-30 18:52:13 +10:00
parent 994dbe09a0
commit f581d4eda0
3 changed files with 34 additions and 1 deletions

28
templates/bot_create.html Normal file
View file

@ -0,0 +1,28 @@
<!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>
<p class="large centred">Step {{ session['step'] }}</p>
</div>
<div class="container centred">
<form action="/bot/create" method="POST">
<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>
<div class="container centred">
<button class="button btn-primary"><i class="fas fa-play"></i> Next</button>
</div>
</form>
</div>
{% include 'footer.html' %}
</body>
</html>

View file

@ -10,7 +10,7 @@
<h1 class='thin centred'>Home</h1>
<p class="centred large">Hi there! You have 1 bots, all of which are currently active.</p>
<p class="centred" style="margin: 50px 0;">
<a class="button btn-primary btn-large" href="/bot/new" role="button"><i class="fas fa-robot"></i> New bot</a>
<a class="button btn-primary btn-large" href="/bot/create" role="button"><i class="fas fa-robot"></i> New bot</a>
<a class="button btn-secondary btn-large" href="/settings" role="button"><i class="fas fa-cog"></i> Account settings</a>
<a class="button btn-secondary btn-large" href="/do/signout" role="button"><i class="fas fa-sign-out-alt"></i> Sign out</a>
</p>

View file

@ -30,3 +30,8 @@ def settings():
@app.route("/bot/edit/<id>")
def bot_edit(id):
return render_template("bot_edit.html")
@app.route("/bot/create/")
def bot_create():
session['step'] = 1
return render_template("bot_create.html")