|
|
@ -2,25 +2,28 @@
|
|
|
|
{% from "_formhelpers.html" import errors %}
|
|
|
|
{% from "_formhelpers.html" import errors %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Log In</h1>
|
|
|
|
|
|
|
|
<form action="" method="post">
|
|
|
|
<form action="" method="post">
|
|
|
|
|
|
|
|
<h2>Sign Up</h2>
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{ form.username.label }} {{ form.username(size=32) }}
|
|
|
|
{{ form.username(placeholder="Username") }}
|
|
|
|
{{ errors(form.username) }}
|
|
|
|
{{ errors(form.username) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{ form.email.label }} {{ form.email(size=32) }}
|
|
|
|
{{ form.email(placeholder="Email address") }}
|
|
|
|
{{ errors(form.email) }}
|
|
|
|
{{ errors(form.email) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{ form.password.label }} {{ form.password(size=32) }}
|
|
|
|
{{ form.password(placeholder="Password") }}
|
|
|
|
{{ errors(form.password) }}
|
|
|
|
{{ errors(form.password) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{ form.password_again.label }} {{ form.password_again(size=32) }}
|
|
|
|
{{ form.password_again(placeholder="Repeat password") }}
|
|
|
|
{{ errors(form.password_again) }}
|
|
|
|
{{ errors(form.password_again) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>{{ form.submit() }}</div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{{ form.submit() }}
|
|
|
|
|
|
|
|
<a href="{{ url_for('auth.login') }}">Already registered?</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
{% endblock content %}
|
|
|
|
{% endblock content %}
|