Skip to content

Commit

Permalink
#12 'select' question type
Browse files Browse the repository at this point in the history
  • Loading branch information
mwasiluk committed Jul 5, 2016
1 parent 3a96e12 commit 64f5ce5
Show file tree
Hide file tree
Showing 19 changed files with 141 additions and 28 deletions.
45 changes: 43 additions & 2 deletions demo-material/form-data.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"name": "form name",
"description": "description",
"pages": [
Expand Down Expand Up @@ -291,11 +291,52 @@
"quantity": 100,
"unit": "%"
}
},
{
"id": "71bf4665af4980cc5ee093ec9f561ed1",
"orderNo": 16,
"type": "question",
"question": {
"id": "4ec4b0f4267b38ac4a15c0fde0121a57",
"text": "Select",
"type": "select",
"required": true,
"offeredAnswers": [
{
"id": "9e70c289904bdc73a5a035bf078030e4",
"orderNo": 1,
"value": "aaaaaaaaaaaaaaa",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
},
{
"id": "f3f2f089ce2bc01041db8dc7048630c9",
"orderNo": 2,
"value": "bbbbbbbbbbb",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
},
{
"id": "90af60470f0d550b1ba27b8b5b0c4383",
"orderNo": 3,
"value": "cccccccccccccc",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
}
],
"pageFlowModifier": false
}
}
],
"namedPage": false,
"isFirst": true,
"isLast": true
}
]
}
}
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ angular.module('app', ['ui.bootstrap', 'mwFormBuilder', 'mwFormViewer', 'mwFormU
ctrl.viewerReadOnly = false;
ctrl.languages = ['en', 'pl', "es"];
ctrl.formData = null;
$http.get('form-data2.json')
$http.get('form-data.json')
.then(function(res){
ctrl.formData = res.data;
});
Expand Down
45 changes: 43 additions & 2 deletions demo/form-data.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"name": "form name",
"description": "description",
"pages": [
Expand Down Expand Up @@ -291,11 +291,52 @@
"quantity": 100,
"unit": "%"
}
},
{
"id": "71bf4665af4980cc5ee093ec9f561ed1",
"orderNo": 16,
"type": "question",
"question": {
"id": "4ec4b0f4267b38ac4a15c0fde0121a57",
"text": "Select",
"type": "select",
"required": true,
"offeredAnswers": [
{
"id": "9e70c289904bdc73a5a035bf078030e4",
"orderNo": 1,
"value": "aaaaaaaaaaaaaaa",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
},
{
"id": "f3f2f089ce2bc01041db8dc7048630c9",
"orderNo": 2,
"value": "bbbbbbbbbbb",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
},
{
"id": "90af60470f0d550b1ba27b8b5b0c4383",
"orderNo": 3,
"value": "cccccccccccccc",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
}
],
"pageFlowModifier": false
}
}
],
"namedPage": false,
"isFirst": true,
"isLast": true
}
]
}
}
2 changes: 1 addition & 1 deletion dist/form-builder-bootstrap-tpls.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/form-builder-material-tpls.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/form-builder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/form-utils.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64f5ce5

Please sign in to comment.