Files
cmautobuy/admin/templates/auth/login.html
T

32 lines
1.2 KiB
HTML

{{define "auth/login"}}<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}} · 采集采购管理端</title>
<link rel="stylesheet" href="/static/css/app.css">
</head>
<body class="auth-page">
<main class="auth-card">
<h1>登录 Admin</h1>
<p class="hint">登录后进入采集采购管理端。</p>
{{if .Message}}<p class="{{if eq .Message "用户名或密码错误"}}missing{{else}}hint{{end}}" role="status">{{.Message}}</p>{{end}}
<form method="post" action="/login">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<input type="hidden" name="next" value="{{.Next}}">
<div class="field">
<label for="login-username">用户名</label>
<input id="login-username" type="text" name="username" value="{{.Username}}"
maxlength="64" required autocomplete="username" autofocus>
</div>
<div class="field">
<label for="login-password">密码</label>
<input id="login-password" type="password" name="password" maxlength="72"
required autocomplete="current-password">
</div>
<button type="submit" class="primary auth-submit">登录</button>
</form>
</main>
</body>
</html>{{end}}