From f3c10e6857e86f6ed10a5308f7c020fcfc66d18d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Aug 2024 06:23:19 +0900 Subject: fix(backend): add missing `method="post"` to
--- backend/admin/templates/game_edit.html | 2 +- backend/admin/templates/user_edit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/admin') diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index 764b577..b2caf8f 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -5,7 +5,7 @@ {{ end }} {{ define "content" }} - +
diff --git a/backend/admin/templates/user_edit.html b/backend/admin/templates/user_edit.html index 9089b1e..bde7c84 100644 --- a/backend/admin/templates/user_edit.html +++ b/backend/admin/templates/user_edit.html @@ -5,7 +5,7 @@ {{ end }} {{ define "content" }} - +
-- cgit v1.2.3-70-g09d2 From 4bd7cb8d5e02187d30918fa09e98e61396827154 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Aug 2024 06:26:43 +0900 Subject: fix(backend): fix `started_at` format --- backend/admin/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/admin') diff --git a/backend/admin/handlers.go b/backend/admin/handlers.go index d9a6977..d445de8 100644 --- a/backend/admin/handlers.go +++ b/backend/admin/handlers.go @@ -126,7 +126,7 @@ func (h *AdminHandler) getGames(c echo.Context) error { for i, g := range rows { var startedAt string if !g.StartedAt.Valid { - startedAt = g.StartedAt.Time.In(jst).Format("2006-01-02T15:04:05") + startedAt = g.StartedAt.Time.In(jst).Format("2006-01-02T15:04") } games[i] = echo.Map{ "GameID": g.GameID, @@ -161,7 +161,7 @@ func (h *AdminHandler) getGameEdit(c echo.Context) error { var startedAt string if !row.StartedAt.Valid { - startedAt = row.StartedAt.Time.In(jst).Format("2006-01-02T15:04:05") + startedAt = row.StartedAt.Time.In(jst).Format("2006-01-02T15:04") } return c.Render(http.StatusOK, "game_edit", echo.Map{ @@ -214,7 +214,7 @@ func (h *AdminHandler) postGameEdit(c echo.Context) error { { startedAtRaw := c.FormValue("started_at") if startedAtRaw != "" { - startedAtTime, err := time.Parse("2006-01-02T15:04:05", startedAtRaw) + startedAtTime, err := time.Parse("2006-01-02T15:04", startedAtRaw) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, "Invalid started_at") } -- cgit v1.2.3-70-g09d2 From af4b6d006a84dab5a2520cff498b435a292ea2df Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Aug 2024 21:56:32 +0900 Subject: fix(backend): fix game_edit page --- backend/admin/templates/game_edit.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/admin') diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index b2caf8f..108ae99 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -39,11 +39,11 @@
- +
- +
-- cgit v1.2.3-70-g09d2