CHANGE: added team view, with submitted bookings for team members and send form for own bookings

This commit is contained in:
2025-02-25 15:08:34 +01:00
parent 478fd53d4f
commit d68a19790e
14 changed files with 846 additions and 1766 deletions

View File

@@ -33,9 +33,9 @@ func LoginHandler(w http.ResponseWriter, r *http.Request) {
}
func UserHandler(w http.ResponseWriter, r *http.Request) {
if !Session.Exists(r.Context(), "user") {
http.Redirect(w, r, "/user/login", http.StatusSeeOther)
}
// if !Session.Exists(r.Context(), "user") {
// http.Redirect(w, r, "/user/login", http.StatusSeeOther)
// }
switch r.Method {
case http.MethodGet:
showPWForm(w, r, 0)