diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-05 21:56:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-05 21:56:32 +0900 |
| commit | af4b6d006a84dab5a2520cff498b435a292ea2df (patch) | |
| tree | 99b58361f3f2d12ac04f3d5076486d00d18f2e10 /backend/admin | |
| parent | 934b6b97195424ccb3067eedc4f64c1f10fc6666 (diff) | |
| download | phperkaigi-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/admin')
| -rw-r--r-- | backend/admin/templates/game_edit.html | 4 |
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> |
