aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
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>