增加admin相关页面
This commit is contained in:
14
web/admin/index.tmpl
Normal file
14
web/admin/index.tmpl
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.Title}}</h1>
|
||||
<nav>
|
||||
<a href="/admin/themes">主题管理</a>
|
||||
<a href="/admin/setinfo">个人信息</a>
|
||||
</nav>
|
||||
<p>欢迎登录后台管理系统!</p>
|
||||
</body>
|
||||
</html>
|
||||
20
web/admin/login.tmpl
Normal file
20
web/admin/login.tmpl
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.Title}}web</h1>
|
||||
<form action="/admin/login" method="post">
|
||||
<div>
|
||||
<label>用户名:</label>
|
||||
<input type="text" name="username" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>密码:</label>
|
||||
<input type="password" name="password" required>
|
||||
</div>
|
||||
<button type="submit">登录</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
24
web/themes/default/templates/register.tmpl
Normal file
24
web/themes/default/templates/register.tmpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.Title}}web下</h1>
|
||||
<form action="/register" method="post">
|
||||
<div>
|
||||
<label>用户名:</label>
|
||||
<input type="text" name="username" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>密码:</label>
|
||||
<input type="password" name="password" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>确认密码:</label>
|
||||
<input type="password" name="confirm_password" required>
|
||||
</div>
|
||||
<button type="submit">注册</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user