[ ] See in the UI a list with all the players, in a drop-down or a search component, and you are able to multi-select users (up to a maximum)
[ ] With players selected, after you click the create game button, make sure that in the controller, you add the players to the game (i.e. create GamePlayer objects)
When you update a game, you should:
[ ] See in the UI a list with all the already selected players, in the correct order (based on the position)
[ ] You can add or remove players from the selection
[ ] ~You can re-order the players (i.e. change the positions)~
[ ] When you update the game, make sure you also update the GamePlayer objects (i.e. delete or remove them, and updated the positions)
When you show a game, make sure you can see the selected players, in the correct position
NOTE:
You can only add/remove players to a game when you create it, or when you edit it and the game has the state created. If the game is in_progress, canceled or completed, you cannot edit the players.
When you
create
a game, you should:create game
button, make sure that in the controller, you add the players to the game (i.e. create GamePlayer objects)When you
update
a game, you should:When you
show
a game, make sure you can see the selected players, in the correct positionNOTE:
You can only add/remove players to a game when you create it, or when you edit it and the game has the state
created
. If the game isin_progress
,canceled
orcompleted
, you cannot edit the players.