From 4848d10be595cbc257b1d43be1c924fdcf81284e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 12 Mar 2025 03:10:22 +0900 Subject: feat(backend): change is_public input to checkbox in game edit page --- backend/admin/handler.go | 2 +- backend/admin/templates/game_edit.html | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'backend') diff --git a/backend/admin/handler.go b/backend/admin/handler.go index 7ab6ffc..3b8af23 100644 --- a/backend/admin/handler.go +++ b/backend/admin/handler.go @@ -219,7 +219,7 @@ func (h *Handler) postGameEdit(c echo.Context) error { } gameType := c.FormValue("game_type") - isPublic := c.FormValue("is_public") == "public" + isPublic := (c.FormValue("is_public") != "") displayName := c.FormValue("display_name") durationSeconds, err := strconv.Atoi(c.FormValue("duration_seconds")) if err != nil { diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index 3b9d9de..5ff2ddc 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -23,10 +23,7 @@
- +
-- cgit v1.2.3-70-g09d2