Buckler/templates/register.html

77 lines
2.0 KiB
HTML
Raw Permalink Normal View History

2019-09-15 19:40:58 -04:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Buckler - Register</title>
2019-09-25 15:12:58 -04:00
<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.">
2019-09-15 19:40:58 -04:00
</head>
<body>
2019-09-25 15:12:58 -04:00
<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">
2019-09-29 13:23:17 -04:00
<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>
2019-09-25 15:12:58 -04:00
{% if errors['username'] %}
2019-09-29 13:23:17 -04:00
<tr>
<td></td>
<td>
<ul>
{% for error in errors['username'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
2019-09-25 15:12:58 -04:00
{% endif %}
2019-09-29 13:23:17 -04:00
<tr>
<td><label for="email">Email</label></td>
<td><input id="email" name="email" type="email"></td>
</tr>
2019-09-25 15:12:58 -04:00
{% if errors['email'] %}
2019-09-29 13:23:17 -04:00
<tr>
<td></td>
<td>
<ul>
{% for error in errors['email'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
2019-09-25 15:12:58 -04:00
{% endif %}
2019-09-29 13:23:17 -04:00
<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>
2019-09-25 15:12:58 -04:00
{% if errors['password'] %}
2019-09-29 13:23:17 -04:00
<tr>
<td></td>
<td>
<ul>
{% for error in errors['password'] %}
<li class="error">{{ error }}</li>
{% endfor %}
</ul>
</td>
</tr>
2019-09-25 15:12:58 -04:00
{% endif %}
2019-09-29 13:23:17 -04:00
</table>
2019-09-25 15:12:58 -04:00
<input type="submit" value="Register">
</form>
</section>
</main>
2019-09-15 19:40:58 -04:00
</body>
</html>