-
-
Save rm--/73678e0128d01790e745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "http://example.com/api/23/", | |
"author": 1, | |
"date_created": "2015-03-26T11:01:23.262391Z", | |
"date_updated": "2015-03-26T11:01:23.262391Z", | |
"html": "<form></form>", | |
"javascript": "<script></script>", | |
"form": { | |
"id": 123, | |
"method": "POST", | |
"action": "/action/create", | |
"enctype": "multipart/form-data", | |
"title": "A new form", | |
"help_text": "Lorem ipsum.", | |
"css_classes": "form inline", | |
"elements_css_classes": "form-control", | |
"elements": { | |
"title": { | |
"type": "input", | |
"label": "Title", | |
"placeholder": "Enter the title", | |
"weight": 1, | |
"immutable": false, | |
"readonly": false, | |
"required": true, | |
"maxlength": 50, | |
"default": "" | |
}, | |
"description": { | |
"type": "textarea", | |
"label": "Description", | |
"placeholder": "Add your description here.", | |
"weight": 2, | |
"immutable": false, | |
"readonly": false, | |
"required": false, | |
"rows": "10", | |
"cols": "50" | |
}, | |
"director": { | |
"type": "fieldset", | |
"label": "Director", | |
"immutable": false, | |
"weight": 3, | |
"clone": { | |
"extra": 2, | |
"max": 5, | |
"required": 3 | |
}, | |
"elements": { | |
"sex": { | |
"label": "Sex", | |
"type": "radio", | |
"choices": ["female", "male"], | |
"immutable": false, | |
"readonly": false, | |
"required": true, | |
"weight": 4 | |
}, | |
"first_name": { | |
"label": "First Name", | |
"type": "input", | |
"placeholder": "", | |
"immutable": false, | |
"readonly": false, | |
"required": true, | |
"weight": 1 | |
}, | |
"last_name": { | |
"label": "Last Name", | |
"type": "input", | |
"placeholder": "Last name", | |
"immutable": false, | |
"readonly": false, | |
"required": true, | |
"weight": 2 | |
}, | |
"vegetarian": { | |
"label": "Vegetarian", | |
"type": "checkbox", | |
"value": "Vegetarian", | |
"immutable": false, | |
"readonly": false, | |
"required": true, | |
"weight": 3, | |
"checked": false | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment