Skip to content

Commit

Permalink
page flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mwasiluk committed Dec 1, 2015
1 parent 847e09b commit 7b26eda
Show file tree
Hide file tree
Showing 6 changed files with 1,634 additions and 115 deletions.
13 changes: 5 additions & 8 deletions demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
<ul class="nav navbar-nav nav-pills navbar-right" role="menubar">
<li class="dropdown pointer" role="presentation">
<a id="language-menu-item" class="dropdown-toggle" href="javascript:;" role="menuitem" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span>
<span class="glyphicon glyphicon-flag"></span>
<span class="hidden-tablet">Language</span>
<b class="caret"></b>
</span>
<span>
<span class="glyphicon glyphicon-flag"></span>
<span class="hidden-tablet">Language</span>
<b class="caret"></b>
</span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="language-menu-item">
<li active-menu="{{language}}" ng-repeat="language in ctrl.languages" role="presentation">
Expand Down Expand Up @@ -86,9 +86,6 @@
</div>
</div>




<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../bower_components/jquery-ui/jquery-ui.min.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
Expand Down
77 changes: 1 addition & 76 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,82 +9,7 @@ angular.module('app', ['mwFormBuilder', 'mwFormViewer', 'pascalprecht.translate'
.controller('DemoController', function($q, $translate) {
var ctrl = this;
ctrl.languages = ['en', 'pl'];
ctrl.formData = {
"pages": [
{
"id": "f60c27ba319d4a645c9e145bba95ef9f",
"number": 1,
"name": null,
"description": null,
"elements": [
{
"id": "a3a6f740ea85672b56ff37f4dac77ae6",
"orderNo": 1,
"type": "question",
"question": {
"id": "ef04ed873bc341239f7b3ac54a86b9bf",
"text": "123",
"type": "radio",
"required": true,
"offeredAnswers": [
{
"id": "1e9241d6d65d9c1236b52ab62d4143ae",
"orderNo": 1,
"value": "1",
"pageFlow": {
"nextPage": true,
"label": "mwForm.pageFlow.goToNextPage"
}
},
{
"id": "b537fa40395a8585cced00911caf2d5a",
"orderNo": 2,
"value": "2",
"pageFlow": {
"page": {
"id": "a9eb4937ae6187d2f8354a23b153f80f"
},
"label": "Go to page 2"
}
},
{
"id": "20906a5a57a1ca70b43bcb0b724fefce",
"orderNo": 3,
"value": "3",
"pageFlow": {
"page": {
"id": "e13ae72a0e02d07594209f195b7eefe9"
},
"label": "Go to page 3"
}
}
],
"pageFlowModifier": true
}
}
],
"namedPage": false,
"isFirst": true,
"isLast": false
},
{
"id": "a9eb4937ae6187d2f8354a23b153f80f",
"number": 2,
"name": "2",
"description": null,
"elements": [],
"namedPage": true
},
{
"id": "e13ae72a0e02d07594209f195b7eefe9",
"number": 3,
"name": "3",
"description": null,
"elements": [],
"namedPage": true
}
]
};
ctrl.formData = {};
ctrl.formViewer = {};
ctrl.formStatus= {};
ctrl.responseData={};
Expand Down
1,145 changes: 1,130 additions & 15 deletions dist/form-builder.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7b26eda

Please sign in to comment.