<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Register</title>
    <link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<h1>Register</h1>
{{if .Message}}
<p>{{.Message}}</p>
{{end}}
<form action="/register" method="post">
    <label for="username">姓名:</label>
    <input type="text" id="username" name="username" required><br>
    {{ range $i, $v := .users }}
    <label >{{ $v.Name }}</label>
    {{ end }}
    <label for="phone">电话:</label>
    <input type="phone" id="phone" name="phone" required><br>

    <label for="level">员工类型:</label>
    <select>
        <option value="10">员工</option>
        <option value="71">领导</option>
    </select><br>

    <label for="level">性别:</label>
    <select>
        <option value="1">男</option>
        <option value="2">女</option>
    </select><br>

    <input type="submit" value="Register">
</form>
<a href="/">Home</a>
</body>
</html>
