Goit

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

Goit/res/admin/user_edit.html (31 lines, 1.3 KiB) -rw-r--r-- file download

d631c5e Jakob Wakeling 2023-07-20 23:13:39
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/edit?user={{.Form.Id}}" 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="id">ID</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
					<tr><td><span>{{.Form.Id}}</span></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
					<tr><td><label for="username">Username</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
					<tr><td><input type="text" name="username" value="{{.Form.Name}}" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
					<tr><td><label for="fullname">Full Name</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
					<tr><td><input type="text" name="fullname" value="{{.Form.FullName}}" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
					<tr><td><label for="password">Password</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
					<tr><td><input type="password" name="password" placeholder="unchanged"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
					<tr><td><label for="admin">Admin</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
					<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
20
					<tr><td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
						<input type="submit" name="submit" value="Update">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
						<a href="/admin/users" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
					</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
					<tr><td><span style="color: #AA0000">{{.Message}}</span></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
29
</html>
30