silverstripe-framework/tests/php/Forms/FormSchemaTest/testGetNestedSchema.json
Saophalkun Ponlu 381ad756f2 Fix tests
2017-12-08 09:58:52 +13:00

198 lines
4.9 KiB
JSON

{
"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",
"type": "text",
"schemaType": "Text",
"component": null,
"holderId": "Form_TestForm_Name_Holder",
"title": "Name",
"source": null,
"extraClass": "text",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": [],
"data": {
"maxlength": null
},
"validation": []
},
{
"id": "Form_TestForm_SecurityID",
"name": "SecurityID",
"type": "hidden",
"schemaType": "Hidden",
"component": null,
"holderId": "Form_TestForm_SecurityID_Holder",
"title": "Security ID",
"source": null,
"extraClass": "hidden",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": [],
"data": [],
"validation": []
}
],
"actions": [
{
"id": "Form_TestForm_action_save",
"title": "Save",
"name": "action_save",
"type": "submit",
"schemaType": null,
"component": "FormAction",
"holderId": "Form_TestForm_action_save_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": "save"
},
"validation": []
},
{
"id": "Form_TestForm_action_cancel",
"title": "Cancel",
"name": "action_cancel",
"type": "submit",
"schemaType": null,
"component": "FormAction",
"holderId": "Form_TestForm_action_cancel_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": {
"type": "button"
},
"data": {
"icon": null
},
"validation": []
},
{
"id": "Form_TestForm_Moreoptions",
"title": "More options",
"name": "Moreoptions",
"schemaType": "Structural",
"type": null,
"component": "PopoverField",
"holderId": "Form_TestForm_Moreoptions_Holder",
"source": null,
"extraClass": "field CompositeField popover",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": null,
"disabled": false,
"autoFocus": false,
"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",
"type": "submit",
"schemaType": null,
"component": "FormAction",
"holderId": "Form_TestForm_action_publish_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": null
},
"validation": []
},
{
"id": "Form_TestForm_action_archive",
"title": "Archive",
"name": "action_archive",
"type": "submit",
"schemaType": null,
"component": "FormAction",
"holderId": "Form_TestForm_action_archive_Holder",
"source": null,
"extraClass": "action",
"description": null,
"rightTitle": null,
"leftTitle": null,
"readOnly": false,
"disabled": false,
"autoFocus": false,
"customValidationMessage": "",
"attributes": {
"type": "submit"
},
"data": {
"icon": null
},
"validation": []
}
]
}
]
}