Files
summercms/admin/tests/fixtures/extension.form-schema.json
Jakub Zych 9df9fae930 feat(10.1-02): render header and form partials through an allowlisted node renderer
- partialNodes rebuilds the server node tree with h() under the server's tag, attribute and URL lists
- PartialHost owns the skeleton, empty and failure states and keeps nodes visible on refetch
- type: partial is a valueless group-labelled field rendered on create and update
- ListView shows headerPartial above the list card and refetches it after bulk delete
- summer-partial and summer-stats style kit in main.css, documented in the cabana README; dist rebuilt
2026-09-29 02:10:18 +02:00

75 lines
1.5 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"
}
},
"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"
}
}