UnderCover/undercover/templates/create_account.jinja2

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-09-23 18:59:42 -04:00
{% extends "base.jinja2" %}
{% block title %}UnderCover - Create Account{% endblock title %}
{% block head %}
<style>
form {
display: flex;
flex-direction: column;
}
form div {
margin-top: 2em;
}
form a.wipe {
margin-left: inherit;
margin-top: 4em;
text-align: center;
}
</style>
{% endblock head %}
2022-09-23 18:59:42 -04:00
{% block content %}
<form action="/create_account" method="post">
<div>
<label for="login">Email: </label>
<input id="login" maxlength="32" minlength="4" name="login" type="text" placeholder="sage@sagev.space">
</div>
2022-09-23 18:59:42 -04:00
<div>
<label for="password">Password: </label>
<input id="password" maxlength="32" minlength="4" name="password" type="password">
</div>
2022-09-23 18:59:42 -04:00
<a href="javascript:void(0)"
class="wipe up-wipe"
{% if errors %}
onclick="/*clearErrors();*/document.getElementById('letter-form').submit()"
{% else %}
onclick="document.getElementById('letter-form').submit()"
{% endif %}
>Create Account</a>
</form>
{% if errors %}
<div id=errors>
<h3>Error while logging in:</h3>
<p class=errors>
{% for error in errors %}
{{ error }}<br>
{% endfor %}
</p>
</div>
{% endif %}
{% endblock content %}