aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-05 21:56:32 +0900
committernsfisis <nsfisis@gmail.com>2024-08-05 21:56:32 +0900
commitaf4b6d006a84dab5a2520cff498b435a292ea2df (patch)
tree99b58361f3f2d12ac04f3d5076486d00d18f2e10 /backend
parent934b6b97195424ccb3067eedc4f64c1f10fc6666 (diff)
downloadphperkaigi-2025-albatross-af4b6d006a84dab5a2520cff498b435a292ea2df.tar.gz
phperkaigi-2025-albatross-af4b6d006a84dab5a2520cff498b435a292ea2df.tar.zst
phperkaigi-2025-albatross-af4b6d006a84dab5a2520cff498b435a292ea2df.zip
fix(backend): fix game_edit page
Diffstat (limited to 'backend')
-rw-r--r--backend/admin/templates/game_edit.html4
1 files changed, 2 insertions, 2 deletions
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 @@
</div>
<div>
<label>Started At</label>
- <input type="datetime-local" name="started_at" value="{{ .Game.StartedAt }}">
+ <input type="datetime-local" name="started_at" value="{{ if .Game.StartedAt }}{{ .Game.StartedAt }}{{ end }}">
</div>
<div>
<label>Problem ID</label>
- <input type="text" name="problem_id" value="{{ .Game.ProblemID }}" disabled>
+ <input type="text" name="problem_id" value="{{ if .Game.ProblemID }}{{ .Game.ProblemID }}{{ end }}">
</div>
<div>
<button type="submit">Save</button>