aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin')
-rw-r--r--backend/admin/handler.go1
-rw-r--r--backend/admin/templates/user_edit.html4
2 files changed, 5 insertions, 0 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go
index 3e185ea..64f69d8 100644
--- a/backend/admin/handler.go
+++ b/backend/admin/handler.go
@@ -123,6 +123,7 @@ func (h *Handler) getUserEdit(c echo.Context) error {
"DisplayName": row.DisplayName,
"IconPath": row.IconPath,
"IsAdmin": row.IsAdmin,
+ "Label": row.Label,
},
})
}
diff --git a/backend/admin/templates/user_edit.html b/backend/admin/templates/user_edit.html
index d31338a..54b823b 100644
--- a/backend/admin/templates/user_edit.html
+++ b/backend/admin/templates/user_edit.html
@@ -27,6 +27,10 @@
<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>