diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-05 02:33:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-05 03:02:18 +0900 |
| commit | 968b835d0e6fe960c3d7ab915ef6d9cecec4ab7f (patch) | |
| tree | ee5c3cd7e3817866439f71eccb085e8394a0a1a5 /backend/admin/templates/game_edit.html | |
| parent | 5988360d8cf0fc0028c6db1c82afc1e313ba0513 (diff) | |
| download | phperkaigi-2025-albatross-968b835d0e6fe960c3d7ab915ef6d9cecec4ab7f.tar.gz phperkaigi-2025-albatross-968b835d0e6fe960c3d7ab915ef6d9cecec4ab7f.tar.zst phperkaigi-2025-albatross-968b835d0e6fe960c3d7ab915ef6d9cecec4ab7f.zip | |
feat(backend): allow to edit `game_type` in admin page
Diffstat (limited to 'backend/admin/templates/game_edit.html')
| -rw-r--r-- | backend/admin/templates/game_edit.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index 8bc5410..764b577 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -15,11 +15,18 @@ <input type="text" name="display_name" value="{{ .Game.DisplayName }}" required> </div> <div> + <label>Game Type</label> + <select name="game_type" required> + <option value="1v1"{{ if eq .Game.GameType "1v1" }} selected{{ end }}>1v1</option> + <option value="multiplayer"{{ if eq .Game.GameType "multiplayer" }} selected{{ end }}>Multiplayer</option> + </select> + </div> + <div> <label>State</label> - <select> + <select name="state" required> <option value="closed"{{ if eq .Game.State "closed" }} selected{{ end }}>Closed</option> - <option value="waiting_entries"{{ if eq .Game.State "waiting_entries" }} selected{{ end }}>WaitingEntries</option> - <option value="waiting_start"{{ if eq .Game.State "waiting_start" }} selected{{ end }}>WaitingStart</option> + <option value="waiting_entries"{{ if eq .Game.State "waiting_entries" }} selected{{ end }}>Waiting Entries</option> + <option value="waiting_start"{{ if eq .Game.State "waiting_start" }} selected{{ end }}>Waiting Start</option> <option value="prepare"{{ if eq .Game.State "prepare" }} selected{{ end }}>Prepare</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> |
