What this form does
This form is used to create or edit one casino collection. The create screen lists every active language inline. The edit screen loads one existing collection, groups active-language content into tabs, and marks language tabs that already have a name.
What operators can change
- Collection name per active language.
- Collection description per active language.
- Collection image selected from the shared asset list, or
No Image. - Active or inactive status.
- In edit mode, whether automatic preview fill should require portrait images.
- In edit mode, up to eight manually selected preview games and their order.
Create flow
Create starts with empty name and description values for active languages, no image, and the Active checkbox off. Submit sends the entered translations, selected image, and active flag. After the create request succeeds, the page redirects back to the Collections list after a short delay.
Edit flow
Edit loads the selected collection first. Existing active-language values populate the language tabs, and languages that already have a name are sorted before empty languages. Save Changes updates the selected collection and refreshes the edit data; it does not navigate away automatically.
Show only games with portrait icons in Preview is edit-only in the current screen and is saved with Save Changes.
Preview Games
The edit page has a separate Preview Games card:
- search games already assigned to this collection
- add a game to the manual preview
- remove a game from the manual preview
- drag manual preview games into the intended order
- select at most eight manual games
Preview-game add, remove, and reorder operations save immediately through separate collection-game actions. They are not waiting for the collection-level Save Changes button.
On the player side, renderable manual choices lead. Any free slots, up to eight, are filled from eligible non-preview games. With a resolved viewer country, fill uses country popularity; otherwise it keeps collection order.
The portrait-only setting applies to automatic fill candidates. Manual choices are allowed without a portrait image but must still have another renderable game image.
Image selection
The image selector is populated from the shared asset list. Choosing an asset stores a collection image path without the file extension. Empty image selection stores no image. Image previews use the stored path when present and fall back to the image icon when empty.
Known caveats
- Creating a collection fails if another collection already uses the same English name.
- The create page does not render a visible error alert from the create hook; failed create requests can remain visible only through lower-level request handling/logging.
- A new collection is placed at the end of the order automatically; ordering is changed later from the reorder screen.
- The create page sends Active as the checkbox value, whose initial page value is off. Default-active behavior applies only if the active flag is omitted.
- The edit-page error alert has a close icon, but no verified close/reset handler was found on that icon.
- Game membership is not part of this form; it is managed from the Add Games relation workflow.
- A game must already belong to the collection before it can be selected as a manual preview game.
- Preview controls are available on edit, not initial create.