Add about route, fix bootstrap form styles
This commit is contained in:
parent
6e7698c1bc
commit
8f031c432f
4
app.py
4
app.py
@ -146,4 +146,8 @@ def game_answer():
|
||||
return render_template("game/new.html")
|
||||
|
||||
|
||||
@app.route("/about")
|
||||
def about():
|
||||
return render_template("about/index.html")
|
||||
|
||||
migrate = Migrate(app, db)
|
2
sync.sh
Normal file
2
sync.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
rsync -avz ./ root@birdquizz.1ib.re:/var/www/birdquizz
|
6
templates/about/index.html
Normal file
6
templates/about/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<main>
|
||||
<h2>{{ _('About BirdQuizz') }}</h2>
|
||||
</main>
|
||||
{% endblock %}
|
@ -9,11 +9,15 @@
|
||||
{% endif %}
|
||||
|
||||
<form action="/login" method="POST">
|
||||
<label for="username">{{ _('Username') }}</label>
|
||||
<input type="text" name="username" id="username">
|
||||
<label for="password">{{ _('Password') }}</label>
|
||||
<input type="password" name="password" id="password">
|
||||
<input type="submit" value="{{ _('Login') }}">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="username">{{ _('Username') }}</label>
|
||||
<div class="col-sm-10"><input type="text" name="username" id="username"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="password">{{ _('Password') }}</label>
|
||||
<div class="col-sm-10"><input type="password" name="password" id="password"></div>
|
||||
</div>
|
||||
<input class="btn btn-primary" type="submit" value="{{ _('Login') }}">
|
||||
</form>
|
||||
|
||||
<a href="/signup">{{ _('Sign up') }}</a>
|
||||
|
@ -8,14 +8,20 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<form action="/signup" method="POST">
|
||||
<label for="username">{{ _('Username') }}</label>
|
||||
<input type="text" name="username" id="username">
|
||||
<label for="email">{{ _('Email') }}</label>
|
||||
<input type="email" name="email" id="email">
|
||||
<label for="password">{{ _('Password') }}</label>
|
||||
<input type="password" name="password" id="password">
|
||||
<input type="submit" value="{{ _('Sign up') }}">
|
||||
<form class="form-horizontal" action="/signup" method="POST">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="username">{{ _('Username') }}</label>
|
||||
<div class="col-sm-10"><input type="text" name="username" id="username"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="email">{{ _('Email') }}</label>
|
||||
<div class="col-sm-10"><input type="email" name="email" id="email"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="password">{{ _('Password') }}</label>
|
||||
<div class="col-sm-10"><input type="password" name="password" id="password"></div>
|
||||
</div>
|
||||
<input class="btn btn-primary" type="submit" value="{{ _('Sign up') }}">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user