aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/user_edit.html
blob: bde7c84a47b8c75c4d63c3381e6fdd7c5db78020 (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
{{ template "base.html" . }}

{{ define "breadcrumb" }}
<a href="/admin/dashboard">Dashboard</a> | <a href="/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>
    <button type="submit">Save</button>
  </div>
</form>
{{ end }}