Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/admin/user_create.html (29 lines, 1.1 KiB) -rw-r--r-- file download

ae5fc19 Jakob Wakeling 2023-07-17 21:54:54
0
<!DOCTYPE html>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
1
<html lang="en">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
2
	<head>{{template "base/head" .}}</head>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
3
	<body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
4
		<header>{{template "admin/header" .}}</header><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
5
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
6
			<h1>{{.Title}}</h1><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
			<form action="/admin/user/create" method="post">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
				{{.CsrfField}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
				<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
					<tr><td><label for="username">Username</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
					<tr><td><input type="text" name="username" value="{{.Form.Name}}" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
					<tr><td><label for="fullname">Full Name</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
					<tr><td><input type="text" name="fullname" value="{{.Form.FullName}}" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
					<tr><td><label for="password">Password</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
					<tr><td><input type="password" name="password"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
					<tr><td><label for="admin">Admin</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
					<tr><td><input type="checkbox" name="admin" value="true" {{if .Form.IsAdmin}}checked{{end}}></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
					<tr><td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
						<input type="submit" name="submit" value="Create">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
						<a href="/admin/users" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
					</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
					<tr><td><span style="color: #AA0000">{{.Message}}</span></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
</html>
28