What this form does
This page edits one casino provider record. Operators use it to rename a provider, enable or disable the provider, control whether the provider is excluded from bonus use, maintain currency and restriction lists, and choose the provider logo.
The current verified CRM surface is edit-only. A create path exists in the source service, but no current admin-portal create page for this provider form was found in the verified route set.
When to use it
- change provider-level catalog settings
- review a provider record before changing restrictions or status
- replace the provider logo with a shared logo asset or a newly uploaded image
- add provider-level country restrictions
- exclude or include the provider in bonus-related game logic
How the form loads
The edit page receives the provider id from the route and reads exactly one provider row. While the row is loading, the page shows a simple loading state. When the row returns, the form is initialized from the provider record and from the country restriction list returned with that provider.
One important caveat: the provider read uses the same active-aggregator join as the provider list. If a provider is linked to an inactive aggregator, the edit form may not receive that provider row from the current read path.
Editable fields
- Provider Name changes the stored provider name. The save flow rejects an empty name and rejects a duplicate provider name when the name is changed.
- Available Currencies JSON is sent as a string and normalized by the save flow into a list of currency codes. Despite the label, the verified normalizer supports arrays and comma-separated strings; arbitrary JSON objects should not be used.
- Restricted Subdivisions JSON is also normalized as a list-style value. Use explicit string values, not nested objects.
- Restricted Countries JSON is loaded from countries that currently include this provider in their restricted-provider list. On save, the update flow adds this provider to the listed countries. The verified update path does not prove that omitting a country removes an existing restriction.
- Status controls the provider active flag.
- Exclude from bonuses controls whether games from this provider are treated as excluded in bonus-related game logic.
Logo controls
The form has two logo sources:
- Repository Logo Asset searches shared logo assets under the provider-logo asset namespace. Selecting one stores the shared asset key and clears any newly selected upload file.
- Uploaded Logo lets the operator select a local image file. Selecting an upload clears the shared logo asset selection. The file is uploaded only when the operator saves the form.
If both paths are touched, the latest selection wins locally before Save.
Save behavior
Clicking Save sends the current form values as a multipart update. If a local file was selected, the file is included as the provider thumbnail. On success, the page shows a success toast and stays on the edit form; it does not automatically navigate back to the provider list.
Clicking Back uses browser history navigation and does not save local changes.
Known caveats
- The form labels the list editors as JSON, but the verified normalizer is list-oriented. Use arrays or comma-separated strings for code lists.
- Country restrictions are additive in the verified save path; an empty or shortened list is not proven to remove previous country restrictions.
- A shared logo asset key must be under the allowed provider-logo namespace. Invalid keys are rejected by the save flow.
- Uploading a file replaces the shared logo asset selection for this provider.