aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/game_edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/templates/game_edit.html')
-rw-r--r--backend/admin/templates/game_edit.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html
index 48a0625..3b9d9de 100644
--- a/backend/admin/templates/game_edit.html
+++ b/backend/admin/templates/game_edit.html
@@ -22,13 +22,10 @@
</select>
</div>
<div>
- <label>State</label>
- <select name="state" required>
- <option value="closed"{{ if eq .Game.State "closed" }} selected{{ end }}>Closed</option>
- <option value="waiting"{{ if eq .Game.State "waiting" }} selected{{ end }}>Waiting</option>
- <option value="starting"{{ if eq .Game.State "starting" }} selected{{ end }}>Starting</option>
- <option value="gaming"{{ if eq .Game.State "gaming" }} selected{{ end }}>Gaming</option>
- <option value="finished"{{ if eq .Game.State "finished" }} selected{{ end }}>Finished</option>
+ <label>Is Public</label>
+ <select name="is_public" required>
+ <option value="public"{{ if .Game.IsPublic }} selected{{ end }}>Public</option>
+ <option value="private"{{ if not .Game.IsPublic }} selected{{ end }}>Private</option>
</select>
</div>
<div>
@@ -37,7 +34,7 @@
</div>
<div>
<label>Started At</label>
- <input type="datetime-local" name="started_at" value="{{ if .Game.StartedAt }}{{ .Game.StartedAt }}{{ end }}">
+ <input type="datetime-local" name="started_at" value="{{ if .Game.StartedAt }}{{ .Game.StartedAt }}{{ end }}" readonly>
</div>
<div>
<label>Problem ID</label>
@@ -46,5 +43,8 @@
<div>
<button type="submit">Save</button>
</div>
+ <div>
+ <button type="submit" formaction="{{ .BasePath }}/admin/games/{{ .Game.GameID }}/start">Start</button>
+ </div>
</form>
{{ end }}