Operator guideENemailtemplateslist

Email Templates / List

Grouped template inventory with untranslated-template context, CSV export, HTML preview, activation toggle, and edit navigation.

Reader view

Clean portal guidance

This page keeps the operator explanation, field and action descriptions, and screenshots visible without exposing repo paths, raw sidecars, or editorial-only implementation details.

Narrative content

Page body

What this page shows

This route is the main inventory for email templates. Operators use it to review template families, open the edit flow, export the catalog, preview stored HTML, and switch activation state.

The page also shows an Untranslated Email Templates Stats block above the main list so operators can spot translation gaps before opening individual rows.

How the page is organized

The main list is grouped by template family. Each accordion title comes from the backend template order list, and each open group contains the rows for that family.

For every row, the page shows:

  • internal template ID
  • template label
  • row actions for activation, edit, and HTML preview

Important actions

  • Create: opens the create template form
  • Download: exports the current template dataset through the backend CSV branch
  • Activate / Deactivate Email: toggles the isActive flag on the selected template
  • Edit: opens the template edit screen
  • View: opens a modal HTML preview for the currently stored body

Why operators get confused here

Preview is frontend-only

The View action does not call a backend preview route. It opens a frontend modal and renders the stored HTML body for the currently selected language tab.

That means preview is useful for quick inspection, but it is not the same thing as a fully delivered email.

Test send is not on the list page

Operators sometimes expect View to also prove delivery. It does not. Delivery testing happens in the edit screen through Send test email.

Notifications share the same FE component

The same component can switch to a Notifications tab, but the dedicated /notifications route documents that behavior separately. For the email-templates list itself, the primary status toggle uses isActive.

Known caveats

  • Untranslated Email Templates Stats is present on the route, but this slice verifies the main list, save, test-send, and status flows first.
  • Preview applies current casino settings substitutions in the frontend before rendering the modal.

Verification status

  • status: verified_backend
  • main verified routes:
    • GET /api/admin/get-all-email-templates
    • PUT /api/admin/update-email-template
    • GET /api/admin/get-all-email-templates?csvDownload=true
Field dictionary

Fields

field

Template Family

Groups rows by backend template family or business event.

Data Type
grouped-label
field

ID

Internal identifier used in edit, test-send, and status mutation calls.

Data Type
integer
field

Label

Human-readable template name shown to operators in the inventory.

Data Type
string
field

Active

Controls whether the email template is active for email delivery flows.

Data Type
boolean
field

HTML Preview

Stored HTML body preview rendered in the frontend modal for the selected language.

Data Type
html
Operational notes

Notes

item

The main list and CSV export both come from `get-all-email-templates`, with `csvDownload=true` selecting the export branch.

item

The route-level `Notifications` tab is rendered by the same FE component, but that operator workflow is documented under `Notifications`.

item

HTML preview is FE-only and uses the stored template body plus current settings substitutions. There is no dedicated backend preview route for the list page.

Related references

Related pages

pageEmail Templates

Operator workspace for email-template inventory, subject and body maintenance, test-send checks, and notification linkage.

pageEmail Templates / Form

Create and edit workflow for one email template, including per-language subject and HTML body, dynamic variables, translation helpers, and test-send.

pageActivity Tag Rules / List

Main inventory for activity-driven tag rules, with search, activity and status filters, grouped rows, clone, edit, and run actions.

pageAffiliate Deals / List

Searchable table of affiliate deal rows with PID filter, create action, dashboard shortcut, and edit/delete row actions.

pageAffiliate Payment Settings / List

Affiliate payment settings inventory page for reviewing configured rows and opening saved records.

pageAffiliate Settings / List

Affiliate inventory list used to review saved affiliates and open detail or report flows.