Create game status selector template

This commit is contained in:
2026-01-15 23:11:13 +01:00
parent 4e1f55855d
commit d53575ab48
3 changed files with 228 additions and 169 deletions
+6 -2
View File
@@ -112,8 +112,12 @@ def list_games(request: HttpRequest, search_string: str = "") -> HttpResponse:
),
game.year_released,
render_to_string(
"cotton/gamestatus.html",
{"status": game.status, "slot": game.get_status_display()},
"partials/gamestatus_selector.html",
{
"game": game,
"game_statuses": Game.Status.choices,
},
request=request,
),
game.wikidata,
local_strftime(game.created_at, dateformat),