ui: /settings/users/new + /setup-link page

Adds handleUIUserNewGet, handleUIUserNewPost, handleUIUserSetupLinkGet
to ui_users.go; creates web/templates/pages/user_edit.html (multi-mode
new/edit/setup-link); wires three routes in the admin band of server.go.
This commit is contained in:
2026-05-05 09:59:20 +01:00
parent 211f11e460
commit 04a413eb55
4 changed files with 281 additions and 1 deletions
+3
View File
@@ -265,6 +265,9 @@ func (s *Server) routes(r chi.Router) {
if s.deps.UI != nil {
r.Get("/settings", s.handleUISettings)
r.Get("/settings/users", s.handleUIUsersList)
r.Get("/settings/users/new", s.handleUIUserNewGet)
r.Post("/settings/users/new", s.handleUIUserNewPost)
r.Get("/settings/users/{id}/setup-link", s.handleUIUserSetupLinkGet)
r.Get("/settings/notifications", s.handleUINotificationsList)
r.Get("/settings/notifications/new", s.handleUINotificationNewGet)
r.Post("/settings/notifications/new", s.handleUINotificationNewPost)