You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
4.4 KiB
144 lines
4.4 KiB
{
|
|
"title": "Webapp test",
|
|
"users": {
|
|
"admin": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
|
|
"user": "04f8996da763b7a969b1028ee3007569eaf3a635486ddab211d512c85b9df8fb"
|
|
},
|
|
"static_dir": "static",
|
|
"forms": [
|
|
{
|
|
"name": "admin_only",
|
|
"title": "Admin only",
|
|
"description": "Restricted form",
|
|
"script": "test.sh",
|
|
"hidden": "true",
|
|
"fields": [],
|
|
"allowed_users": ["admin"]
|
|
},
|
|
{
|
|
"name": "hidden",
|
|
"title": "Hidden form",
|
|
"description": "Hidden form",
|
|
"script": "test.sh",
|
|
"hidden": "true",
|
|
"fields": []
|
|
},
|
|
{
|
|
"name": "output_escaped",
|
|
"title": "Output escaped",
|
|
"description": "Output escaped",
|
|
"script": "test.sh",
|
|
"output": "escaped",
|
|
"fields": [
|
|
{
|
|
"name": "string",
|
|
"title": "This string should be escaped in the output",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "output_raw",
|
|
"title": "Output raw",
|
|
"description": "Output raw",
|
|
"script": "test.sh",
|
|
"output": "raw",
|
|
"fields": [
|
|
{
|
|
"name": "string",
|
|
"title": "This string should be raw in the output",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "validate",
|
|
"title": "Validated form",
|
|
"description": "This form is heavily validated",
|
|
"submit_title": "Validate it",
|
|
"script": "test.sh",
|
|
"fields": [
|
|
{
|
|
"name": "string",
|
|
"title": "A string between 5 and 7 characters.",
|
|
"type": "string",
|
|
"required": true,
|
|
"minlen": 5,
|
|
"maxlen": 7
|
|
},
|
|
{
|
|
"name": "integer",
|
|
"title": "An integer between 10 and 20",
|
|
"type": "integer",
|
|
"required": true,
|
|
"min": 10,
|
|
"max": 20
|
|
},
|
|
{
|
|
"name": "float",
|
|
"title": "A real number between 0.5 and 1",
|
|
"type": "float",
|
|
"required": true,
|
|
"min": 0.5,
|
|
"max": 1.0
|
|
},
|
|
{
|
|
"name": "date",
|
|
"title": "A date",
|
|
"type": "date",
|
|
"required": true,
|
|
"min": "2015-01-01",
|
|
"max": "2015-02-01"
|
|
},
|
|
{
|
|
"name": "radio",
|
|
"title": "A radio",
|
|
"type": "radio",
|
|
"required": true,
|
|
"options": [
|
|
["One", "one"],
|
|
["Two", "two"],
|
|
["Three", "three"]
|
|
]
|
|
},
|
|
{
|
|
"name": "text",
|
|
"title": "A text input field",
|
|
"type": "text",
|
|
"required": true,
|
|
"rows": 2,
|
|
"cols": 50,
|
|
"maxlen": 100,
|
|
"minlen": 10
|
|
},
|
|
{
|
|
"name": "password",
|
|
"title": "A password input field",
|
|
"type": "password",
|
|
"required": true,
|
|
"minlen": 5
|
|
},
|
|
{
|
|
"name": "file",
|
|
"title": "A file upload field",
|
|
"type": "file",
|
|
"required": true,
|
|
"extensions": ["csv"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "upload",
|
|
"title": "Upload",
|
|
"description": "Upload",
|
|
"script": "test_upload.sh",
|
|
"fields": [
|
|
{
|
|
"name": "file",
|
|
"title": "File upload",
|
|
"type": "file"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|