silverstripe-framework/tests/php/Forms/FormSchemaTest/testGetNestedSchema.json

196 lines
4.8 KiB
JSON
Raw Normal View History

2017-05-04 02:52:40 +02:00
{
"name": "TestForm",
"id": "Form_TestForm",
"action": null,
"method": "POST",
"attributes": {
"id": "Form_TestForm",
"action": null,
"method": "POST",
"enctype": "application\/x-www-form-urlencoded",
"target": null,
"class": ""
},
"data": [],
"fields": [
{
"id": "Form_TestForm_Name",
"name": "Name",
2017-05-09 06:42:08 +02:00
"type": "text",
"schemaType": "Text",
2017-05-04 02:52:40 +02:00
"component": null,
"holderId": "Form_TestForm_Name_Holder",
"title": "Name",
"source": null,
"extraClass": "text",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": [],
"data": [],
"validation": []
},
{
"id": "Form_TestForm_SecurityID",
"name": "SecurityID",
2017-05-09 06:42:08 +02:00
"type": "hidden",
"schemaType": "Hidden",
2017-05-04 02:52:40 +02:00
"component": null,
"holderId": "Form_TestForm_SecurityID_Holder",
"title": "Security ID",
"source": null,
"extraClass": "hidden",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": [],
"data": [],
"validation": []
}
],
"actions": [
{
"id": "Form_TestForm_action_save",
"title": "Save",
"name": "action_save",
2017-05-09 06:42:08 +02:00
"type": "submit",
"schemaType": null,
2017-05-04 02:52:40 +02:00
"component": "FormAction",
"holderId": "Form_TestForm_action_save_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": "save"
},
"validation": []
},
{
"id": "Form_TestForm_action_cancel",
"title": "Cancel",
"name": "action_cancel",
2017-05-09 06:42:08 +02:00
"type": "submit",
"schemaType": null,
2017-05-04 02:52:40 +02:00
"component": "FormAction",
"holderId": "Form_TestForm_action_cancel_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": {
"type": "button"
},
"data": {
"icon": null
},
"validation": []
},
{
"id": "Form_TestForm_Moreoptions",
"title": "More options",
"name": "Moreoptions",
2017-05-09 06:42:08 +02:00
"schemaType": "Structural",
"type": null,
2017-05-04 02:52:40 +02:00
"component": "PopoverField",
"holderId": "Form_TestForm_Moreoptions_Holder",
"source": null,
"extraClass": "field CompositeField popover",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": null,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": [],
"data": {
"popoverTitle": null,
"placement": "bottom",
"tag": "div",
"legend": null,
"buttonTooltip": null,
"inherited": {
"data": {
"fieldholder": "small"
}
}
},
"validation": [],
"children": [
{
"id": "Form_TestForm_action_publish",
"title": "Publish record",
"name": "action_publish",
2017-05-09 06:42:08 +02:00
"type": "submit",
"schemaType": null,
2017-05-04 02:52:40 +02:00
"component": "FormAction",
"holderId": "Form_TestForm_action_publish_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": null
},
"validation": []
},
{
"id": "Form_TestForm_action_archive",
"title": "Archive",
"name": "action_archive",
2017-05-09 06:42:08 +02:00
"type": "submit",
"schemaType": null,
2017-05-04 02:52:40 +02:00
"component": "FormAction",
"holderId": "Form_TestForm_action_archive_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
2017-05-16 00:52:15 +02:00
"autoFocus": false,
2017-05-04 02:52:40 +02:00
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": null
},
"validation": []
}
]
}
]
}