text/html
•
1.10 KB
•
34 lines
<html>
<head>
<title>Login</title>
</head>
<body>
{% include "partials/sidebar.html" %}
<main>
<section>
<h1>Login</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="/login" class="stack">
{{ csrf_token_field|safe }}
<label for="login-username">Username</label>
<input autofocus id="login-username" name="username" type="text" autocomplete="username" required>
<label for="login-password">Password</label>
<input id="login-password" name="password" type="password" autocomplete="current-password" required>
<button type="submit"><span class="icon i-log-in"></span> Log in</button>
</form>
<br/>
<p>New to RubHub? <a href="/registration">Register</a> instead</p>
</div>
</div>
</section>
</main>
</body>
</html>