borg-web/borgweb/templates/registration/login.html
2021-05-10 02:46:25 +01:00

54 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<style>
html, body {
height: 80%;
}
body {
display: flex;
align-items: center;
background-color: aliceblue;
}
.form-signin {
}
</style>
</head>
<body>
{% block content %}
<main class="form-signin mx-auto w-25 px-5">
<div class="mx-5">
<form method="post">
{% csrf_token %}
<!-- <img class="mb-4" src="" alt="" width="" height="">-->
<h1 class="h1 mb-4 fw-regular">Log in</h1>
<div class="form-floating my-2">
<input class="form-control" placeholder="Username" type="text" name="username" autofocus=""
autocapitalize="none" autocomplete="username"
maxlength="150" required="" id="{{ form.username.id_for_label }}">
<label for="{{ form.username.id_for_label }}">Username</label>
</div>
<div class="form-floating mb-4">
<input class="form-control" placeholder="Password" type="password" name="password"
autocomplete="current-password" required=""
id="{{ form.password.id_for_label }}">
<label for="{{ form.password.id_for_label }}">Password</label>
</div>
<button class="w-100 btn btn-lg btn-primary" type="submit">Log In</button>
</form>
</div>
</main>
{% endblock %}
</body>
</html>