Files
GoCode/templates/pages/user.html

27 lines
763 B
HTML

{{/* 定义index页面模板 */}}
{{define "pages/user"}}
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.title}}</title>
</head>
<body>
<form action="/addUser2" method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br>
<label for="age">年龄:</label>
<input type="number" id="age" name="age" required><br>
<input type="submit" value="提交">
</form>
</body>
</html>
{{end}}