Files
summercms/admin/tests/fixtures/roster.list-schema.json
Jakub Zych a65c670574 feat(12.1-02): read-only preview screen with a status hint and record actions
- config_form.yaml preview block (optional headerPartial), reported in the form schema as preview
- fields with context: preview show only on the preview screen and are never written
- form messages preview and edit; recordActions without a preview block stops boot
- SPA route {id}/preview, PreviewView and PreviewField, record actions in the footer
- mapWinterUrl maps preview/:id; the update form returns to the preview
- summer-callout partial style classes for status hints
- README, docs, OpenAPI document, TS types and the embedded build updated
2026-10-05 00:10:48 +02:00

45 lines
1.7 KiB
JSON

{
"data": {
"title": "People",
"recordsPerPage": 20,
"perPageOptions": [],
"showSearch": true,
"showSetup": false,
"showCheckboxes": true,
"showSorting": true,
"searchTerm": "search",
"recordUrl": "acme/roster/people/preview/:id",
"toolbarButtons": ["create", "delete"],
"toolbarActions": [],
"assets": { "scripts": [], "styles": [] },
"columns": [
{ "key": "name", "label": "Name", "searchable": true, "sortable": true },
{ "key": "email", "label": "Email", "searchable": true, "sortable": true }
],
"filters": [],
"rowActions": [],
"bulkActions": [
{ "name": "delete", "label": "Delete selected" },
{ "name": "activate", "label": "Activate", "confirm": "Activate the selected people?" },
{ "name": "archive", "label": "Archive" }
],
"messages": {
"create": { "other": "New person" },
"deleteConfirm": { "other": "Delete the selected (:count)?" },
"deleteSelected": { "other": "Delete selected" },
"deleted": { "one": "Deleted :count record", "other": "Deleted :count records" },
"empty": { "other": "There are no records in this view." },
"emptySearch": { "other": "Nothing found" },
"emptySearchHint": { "other": "No record matches “:term”. Try another search." },
"recordCount": { "one": ":count record", "other": ":count records" },
"searchPrompt": { "other": "Search…" },
"selected": { "other": ":count selected" },
"rowStateDeleted": { "other": "Deleted" },
"rowStateNegative": { "other": "Blocked" },
"rowStateDisabled": { "other": "Not active" }
},
"meta": { "locale": "en" }
},
"meta": { "locale": "en" }
}