UnderCover/undercover/templates/create_account.jinja2

35 lines
970 B
Django/Jinja

{% extends "base.jinja2" %}
{% block title %}UnderCover - Create Account{% endblock title %}
{% block content %}
<form action="/login" method="post">
<label for="login">Username: </label>
<input id="login" maxlength="32" minlength="4" name="login" type="text" placeholder="sagev9000">
<label for="password">Password: </label>
<input id="password" maxlength="32" minlength="4" name="password" type="password">
<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 %}