diff options
Diffstat (limited to 'main/app/sprinkles/FormGenerator/tests/Unit/data')
-rwxr-xr-x | main/app/sprinkles/FormGenerator/tests/Unit/data/bad.json | 12 | ||||
-rwxr-xr-x | main/app/sprinkles/FormGenerator/tests/Unit/data/good.json | 67 |
2 files changed, 79 insertions, 0 deletions
diff --git a/main/app/sprinkles/FormGenerator/tests/Unit/data/bad.json b/main/app/sprinkles/FormGenerator/tests/Unit/data/bad.json new file mode 100755 index 0000000..683add2 --- /dev/null +++ b/main/app/sprinkles/FormGenerator/tests/Unit/data/bad.json @@ -0,0 +1,12 @@ +{ + "myField" : { + "form" : { + "type" : "foo" + } + }, + "myOtherField" : { + "form" : { + "value" : "Bar" + } + } +} diff --git a/main/app/sprinkles/FormGenerator/tests/Unit/data/good.json b/main/app/sprinkles/FormGenerator/tests/Unit/data/good.json new file mode 100755 index 0000000..61d5233 --- /dev/null +++ b/main/app/sprinkles/FormGenerator/tests/Unit/data/good.json @@ -0,0 +1,67 @@ +{ + "number" : { + "form" : { + "type" : "number", + "label" : "Project Number", + "icon" : "fa-edit", + "placeholder" : "Project Number" + } + }, + "name" : { + "form" : { + "type" : "text", + "label" : "Project Name", + "icon" : "fa-flag", + "placeholder" : "Project Name" + } + }, + "owner" : { + "form" : { + "type" : "text", + "label" : "Project Owner", + "icon" : "fa-user", + "id" : "owner", + "placeholder" : "Project Owner", + "default" : "Foo" + } + }, + "description" : { + "form" : { + "type" : "textarea", + "label" : "Project Description", + "icon" : "fa-pencil", + "placeholder" : "Project Description", + "rows" : 5 + } + }, + "status" : { + "form" : { + "type" : "select", + "label" : "Project Status", + "options" : { + "0" : "Closed", + "1" : "Open" + } + } + }, + "active" : { + "form" : { + "type" : "checkbox", + "label" : "Active" + } + }, + "hidden" : { + "form" : { + "type" : "hidden", + "value" : "Something" + } + }, + "alert" : { + "form" : { + "type" : "alert", + "class" : "alert-success", + "icon" : "fa-check", + "value" : "You're awesome!" + } + } +} |