diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-04 20:49:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-04 20:49:12 +0900 |
| commit | ff959dadb1f990173b9df3105ccfc96b1c6c092e (patch) | |
| tree | 4690c2aabafaedb50f86ece4900c9616d9518947 /backend/admin/templates/user_edit.html | |
| parent | fa7755592845a44928e88d2ab78cc04425aa9024 (diff) | |
| parent | f4bae7f755ca25b2547dc98b2db2fdb255948bc5 (diff) | |
| download | phperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.gz phperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.zst phperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.zip | |
Merge branch 'feat/admin-pages'
Diffstat (limited to 'backend/admin/templates/user_edit.html')
| -rw-r--r-- | backend/admin/templates/user_edit.html | 33 |
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 }} |
