Operator guideEN

Content / Form

Create and edit workflow for legacy content pages, including localized title/content and active visibility.

How to use this guide

Start with the main guide

Follow the explanation and examples first. Extra definitions and formulas are available below when you need them.

What this form does

This pack covers the legacy CMS page create and edit screens under Content.

  • create screen, opened from the Content list
  • edit screen, opened for one existing CMS page

Both screens use the same editor shell, but create and edit have different bootstrap and submit behavior.

What operators manage here

  • Slug for the page URL fragment.
  • Category from the static legacy category list:
    • Support
    • About
    • Responsible Gaming
  • Status as the active/inactive visibility switch.
  • Active language tabs loaded from the active-language list.
  • Localized Content on the selected language tab.
  • Localized Title where the current screen renders the title input for the selected language.

Create vs edit

Create

  • Starts with blank values, active status enabled, and EN as the initial tab.
  • Create writes a new CMS page immediately.
  • Successful create shows a success toast and resets the form in place.
  • The operator stays on the create screen after submit.

Edit

  • Loads one existing page before the form is shown.
  • Save updates that CMS page immediately.
  • Successful save shows a success toast and keeps the operator on the same edit screen.

Common confusion

This form does not have a separate publish step. Saving the form writes directly to the admin-owned CMS page record. The only visibility control in this flow is isActive.

Important caveats

  • Cancel is a fixed link back to the Content list.
  • The legacy category selector uses a static option map.
  • The title input only appears for a language when that language already has a title value in the form state. Empty or missing locale keys therefore do not expose a standalone title box on that tab.
  • The status switch on this form only changes the local form value until Create or Save is submitted.
  • There is no unsaved-changes confirmation on Cancel in this legacy form flow.
More details

Definitions and formulas

Open only the section you need. The relevant section opens automatically when you request help for a specific item on screen.

Calculations6 topicsOpen details

Create vs edit submit behaviour

Logic
Create mode submits to `POST /api/admin/create-cms`, shows a success toast, and resets the form in place., Edit mode submits to `PUT /api/admin/update-cms`, shows a success toast, and keeps the operator on the same edit route., Neither mode has a separate publish step.

Static category selector

Logic
The category selector is FE-owned through `PageCategorySelect`., The visible choices are the static values `Support`, `About`, and `Responsible Gaming`., No backend category-options endpoint is used on this surface.

Active language tabs

Logic
Language tabs are built from `GET /api/admin/get-languages?active=true`., The shared editor switches localized values by current tab code.

Title visibility gate

Logic
`PageEditor` only renders the visible `Title` input when `title[currentTab]` is truthy., Empty or missing locale keys therefore do not show a standalone title field on that tab in the current FE.

Cancel navigation

Logic
Both create and edit surfaces render `Cancel` as a link to `/content`., The form does not use `router.back()` for cancel.

Create route read-hook caveat

Logic
`CreatePageForm` still instantiates `useCMSPageDetails` with `pageId = Number(router.query.cmsPageId)`., On the verified create route that value is `NaN`, so the read hook does not provide meaningful create bootstrap data.
Fields6 topicsOpen details

Slug

Route fragment for the content page.

Group
identity
Data Type
string
Editable
true

Category

Legacy content classification used by this editor.

Group
identity
Data Type
enum
Editable
true
Caveats
FE renders a static selector with `Support`, `About`, and `Responsible Gaming`.

Status

Active/inactive switch for the page record.

Group
status
Data Type
boolean
Editable
true

Language Tabs

Switches the form between localized title and content values.

Group
localization
Data Type
tabs

Title

Localized title for the currently selected language tab.

Group
localization
Data Type
string
Editable
true
Caveats
The current FE only renders the title input when `title[currentLanguage]` is already truthy in form state.

Content

Localized HTML body edited through the shared page editor.

Group
localization
Data Type
html
Editable
true
More help

Related pages

Content

Legacy content CRUD workflow for create, edit, view, and visibility changes under `/content`.

Content / List

Legacy content inventory with search, active/inactive filtering, and navigation into create, edit, and view flows.

Content / View

Read-only inspection surface for one admin-owned CMS page record.

Affiliate Deals / Form

Create and edit form for affiliate deals, including PID, date window, commercial terms, and responsible person.

Affiliate Payment Settings / Form

Create and edit form for one affiliate payment-setting record, with visible PID targeting, minimum deposit threshold, and active-state control.

Auto Tags Manager / Create

Full rule-builder for a new automatic tagging rule, including priority, tag actions, coupon actions, KPI field selection, and draft impact estimation.