From 59a82eb4ad2567981d1b349be5b3cb3306102cc1 Mon Sep 17 00:00:00 2001 From: Rolf Date: Sun, 22 Mar 2026 11:08:17 +0100 Subject: [PATCH] Fix player form submission using Alpine-driven hidden inputs Removed name="players" from checkboxes and replaced with a single x-for block generating hidden inputs from selectedPlayers state, ensuring correct submission regardless of active step. Co-Authored-By: Claude Sonnet 4.6 --- app/templates/games/new_game.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/templates/games/new_game.html b/app/templates/games/new_game.html index 9085862..9414e51 100644 --- a/app/templates/games/new_game.html +++ b/app/templates/games/new_game.html @@ -173,8 +173,9 @@ {% for u in all_users %} {% endfor %} - @@ -293,6 +293,11 @@ + {# Hidden inputs driven by Alpine — always submitted regardless of step #} + + {% endblock %}