text/html
•
1.31 KB
•
40 lines
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<body>
{% include "sidebar.html" %}
<main>
<section>
<h1>Register</h1>
{% match message %}
{% when Some with (msg) %}
<div class="message" role="alert">{{ msg }}</div>
{% when None %}
{% endmatch %}
<div class="auth-grid">
<div class="auth-card">
<form method="post" action="/registration" class="stack">
{{ csrf_token_field|safe }}
<input type="hidden" name="action" value="register">
<label for="register-username">Username</label>
<input id="register-username" label="Username" name="username" type="text" autocomplete="username" />
<label for="register-email">E-Mail</label>
<input id="register-email" name="email" type="email" autocomplete="email" required>
<label for="register-password">Password</label>
<input id="register-password" name="password" type="password" autocomplete="new-password" required>
<button type="submit">Create account</button>
</form>
<br/>
<p>Already have an account? <a href="/login">Log in</a></p>
</div>
</div>
</section>
</main>
</body>
</html>