aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/game_edit.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-04 20:49:12 +0900
committernsfisis <nsfisis@gmail.com>2024-08-04 20:49:12 +0900
commitff959dadb1f990173b9df3105ccfc96b1c6c092e (patch)
tree4690c2aabafaedb50f86ece4900c9616d9518947 /backend/admin/templates/game_edit.html
parentfa7755592845a44928e88d2ab78cc04425aa9024 (diff)
parentf4bae7f755ca25b2547dc98b2db2fdb255948bc5 (diff)
downloadiosdc-japan-2024-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.gz
iosdc-japan-2024-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.zst
iosdc-japan-2024-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.zip
Merge branch 'feat/admin-pages'
Diffstat (limited to 'backend/admin/templates/game_edit.html')
-rw-r--r--backend/admin/templates/game_edit.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html
new file mode 100644
index 0000000..8bc5410
--- /dev/null
+++ b/backend/admin/templates/game_edit.html
@@ -0,0 +1,45 @@
+{{ template "base.html" . }}
+
+{{ define "breadcrumb" }}
+<a href="/admin/dashboard">Dashboard</a> | <a href="/admin/games">Games</a>
+{{ end }}
+
+{{ define "content" }}
+<form>
+ <div>
+ <label>Game ID</label>
+ <input type="text" name="game_id" value="{{ .Game.GameID }}" readonly required>
+ </div>
+ <div>
+ <label>Display Name</label>
+ <input type="text" name="display_name" value="{{ .Game.DisplayName }}" required>
+ </div>
+ <div>
+ <label>State</label>
+ <select>
+ <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="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>
+ <option value="finished"{{ if eq .Game.State "finished" }} selected{{ end }}>Finished</option>
+ </select>
+ </div>
+ <div>
+ <label>Duration Seconds</label>
+ <input type="number" name="duration_seconds" value="{{ .Game.DurationSeconds }}" required>
+ </div>
+ <div>
+ <label>Started At</label>
+ <input type="datetime-local" name="started_at" value="{{ .Game.StartedAt }}">
+ </div>
+ <div>
+ <label>Problem ID</label>
+ <input type="text" name="problem_id" value="{{ .Game.ProblemID }}" disabled>
+ </div>
+ <div>
+ <button type="submit">Save</button>
+ </div>
+</form>
+{{ end }}