- 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
81 lines
1.6 KiB
JSON
81 lines
1.6 KiB
JSON
{
|
|
"data": {
|
|
"name": "Widget",
|
|
"fields": [
|
|
{
|
|
"name": "name",
|
|
"label": "Name",
|
|
"type": "text",
|
|
"span": "left",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "color",
|
|
"label": "Colour",
|
|
"type": "text",
|
|
"span": "right"
|
|
},
|
|
{
|
|
"name": "lookup",
|
|
"label": "Catalogue",
|
|
"type": "widget",
|
|
"comment": "Fills in the name. Save to keep it.",
|
|
"widget": "acme-demo-lookup",
|
|
"action": "lookup",
|
|
"actionLabel": "Look up",
|
|
"fill": ["name"]
|
|
},
|
|
{
|
|
"name": "summary",
|
|
"label": "Summary",
|
|
"type": "partial",
|
|
"path": "summary"
|
|
}
|
|
],
|
|
"messages": {
|
|
"create": {
|
|
"other": "New widget"
|
|
},
|
|
"update": {
|
|
"other": "Editing widget"
|
|
},
|
|
"saved": {
|
|
"other": "Widget „:name” saved"
|
|
},
|
|
"deleteConfirm": {
|
|
"other": "Delete this widget?"
|
|
},
|
|
"deleted": {
|
|
"other": "Widget deleted"
|
|
},
|
|
"preview": {
|
|
"other": "Record preview"
|
|
},
|
|
"edit": {
|
|
"other": "Edit record"
|
|
}
|
|
},
|
|
"meta": {
|
|
"locale": "en"
|
|
},
|
|
"assets": {
|
|
"scripts": ["/admin-test/assets/acme/demo/js/lookup.js?v=abc"],
|
|
"styles": []
|
|
},
|
|
"redirects": {
|
|
"create": {
|
|
"redirect": "acme/demo/widgets/update/:id",
|
|
"redirectClose": "acme/demo/widgets"
|
|
},
|
|
"update": {
|
|
"redirect": "acme/demo/widgets",
|
|
"redirectClose": "acme/demo/widgets"
|
|
},
|
|
"default": "acme/demo/widgets"
|
|
}
|
|
},
|
|
"meta": {
|
|
"locale": "en"
|
|
}
|
|
}
|