blob: 54b823b743835183aa1777859d5dea69e0f68b75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{{ template "base.html" . }}
{{ define "breadcrumb" }}
<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a> | <a href="{{ .BasePath }}/admin/users">Users</a>
{{ end }}
{{ define "content" }}
<form method="post">
<div>
<label>User ID</label>
<input type="text" name="user_id" value="{{ .User.UserID }}" readonly required>
</div>
<div>
<label>Username</label>
<input type="text" name="username" value="{{ .User.Username }}" readonly required>
</div>
<div>
<label>Display Name</label>
<input type="text" name="display_name" value="{{ .User.DisplayName }}" required>
</div>
<div>
<label>Icon Path</label>
<input type="text" name="icon_path" value="{{ .User.IconPath }}">
</div>
<div>
<label>Is Admin</label>
<input type="checkbox" name="is_admin"{{ if .User.IsAdmin }} checked{{ end }}>
</div>
<div>
<label>Label</label>
<input type="text" name="label" value="{{ .User.Label }}">
</div>
<div>
<button type="submit">Save</button>
</div>
</form>
{{ end }}
|