Buckler/templates/register.html
2019-09-29 13:23:17 -04:00

77 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Buckler - Register</title>
<link rel="stylesheet" type="text/css" href="/static/buckler.css">
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<meta name="description" content="A small shield for web applications.">
</head>
<body>
<header>
<object id="logo" title="Buckler logo" data="/static/buckler_icon.svg"></object>
<h1>Buckler Register</h1>
</header>
<main>
<section>
<form method="POST" enctype="application/x-www-form-urlencoded">
<table class="no_borders">
<tr>
<td><label for="username">Username</label></td>
<td><input id="username" name="username" type="text" minlength="3" maxlength="20"></td>
</tr>
{% if errors['username'] %}
<tr>
<td></td>
<td>
<ul>
{% for error in errors['username'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
<tr>
<td><label for="email">Email</label></td>
<td><input id="email" name="email" type="email"></td>
</tr>
{% if errors['email'] %}
<tr>
<td></td>
<td>
<ul>
{% for error in errors['email'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
<tr>
<td><label for="password">Password</label></td>
<td><input id="password" name="password" type="password" minlength="8" maxlength="10240"></td>
</tr>
<tr>
<td><label for="password_verify">Verify Password</label></td>
<td><input id="password_verify" name="password_verify" type="password" minlength="8" maxlength="10240"></td>
</tr>
{% if errors['password'] %}
<tr>
<td></td>
<td>
<ul>
{% for error in errors['password'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
</table>
<input type="submit" value="Register">
</form>
</section>
</main>
</body>
</html>