Files
inventory/templates/login.html

43 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统登录</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<header class="hero slim">
<div>
<h1>库存系统登录</h1>
<p>请输入用户名和密码后继续使用系统</p>
</div>
</header>
<main class="container">
<section class="panel" style="max-width: 520px; margin: 0 auto;">
{% if error %}
<p class="alert">{{ error }}</p>
{% endif %}
{% if notice %}
<p class="notice">{{ notice }}</p>
{% endif %}
<form class="form-grid" method="post" action="{{ url_for('login_page') }}">
<input type="hidden" name="next" value="{{ next_path or '' }}">
<label>
用户名
<input type="text" name="username" required autocomplete="username" placeholder="请输入用户名">
</label>
<label>
密码
<input type="password" name="password" required autocomplete="current-password" placeholder="请输入密码">
</label>
<div class="actions full">
<button class="btn" type="submit">登录</button>
</div>
</form>
</section>
</main>
</body>
</html>