aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/user_edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/templates/user_edit.html')
-rw-r--r--backend/admin/templates/user_edit.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/backend/admin/templates/user_edit.html b/backend/admin/templates/user_edit.html
new file mode 100644
index 0000000..9089b1e
--- /dev/null
+++ b/backend/admin/templates/user_edit.html
@@ -0,0 +1,33 @@
+{{ template "base.html" . }}
+
+{{ define "breadcrumb" }}
+<a href="/admin/dashboard">Dashboard</a> | <a href="/admin/users">Users</a>
+{{ end }}
+
+{{ define "content" }}
+<form>
+ <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 }}