You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
myblog/templates/login.html

73 lines
2.3 KiB

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>登录</title>
{# <link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/sign-in/">#}
{% load static %}
<!-- Bootstrap core CSS -->
<link href="{% static 'css/station/bootstrap.min.css' %}" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="{% static 'css/station/signin.css' %}" rel="stylesheet">
</head>
<body class="text-center">
<main class="form-signin">
<form method="post">
{% csrf_token %}
<img class="mb-4" src="{% static 'images/bootstrap-logo.svg' %}" alt="" width="72" height="57">
<h1 class="h3 mb-3 fw-normal">用户登录</h1>
{% if errors %}
<div class="alert alert-danger" role="alert">
{{ errors.loginName }} {{ errors.loginPass }}
</div>
{% endif %}
<div class="form-floating">
<input type="text" name="loginName" class="form-control" id="floatingInput" required placeholder="用户名">
<label for="floatingInput">用户名</label>
</div>
<div class="form-floating">
<input type="password" name="loginPass" class="form-control" id="floatingPassword" required
placeholder="Password">
<label for="floatingPassword">密码</label>
</div>
<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me">&nbsp;&nbsp;记住密码
</label>
</div>
<button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
<p class="mt-5 mb-3 text-muted">&copy; 2017–2023</p>
</form>
</main>
</body>
</html>