1
1
<!DOCTYPE html>
2
- < html ng-app =" test " >
2
+ < html >
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< title > Bootstrap Schema Form example</ title >
28
28
.schema { height : 800px ; }
29
29
</ style >
30
30
</ head >
31
- < body ng-controller ="TestCtrl ">
31
+ < body ng-app =" test " ng- controller ="TestCtrl ">
32
32
33
33
< div class ="col-md-12 ">
34
34
< h1 > Schema Form Example</ h1 >
35
35
< div class ="row ">
36
36
< div class ="col-sm-4 ">
37
37
< h3 > The Generated Form</ h3 >
38
- < form name ="ngform " sf-model ="modelData " sf-form ="form " sf-schema ="schema " sf-decorator ="{{decorator}} ">
38
+ < form name ="ngform " sf-model ="modelData " sf-form ="form " sf-schema ="schema ">
39
+ < div sf-decorator ="{{decorator}} "> </ div >
39
40
</ form >
40
41
< h3 > Model</ h3 >
41
42
< pre ng-cloak > {{pretty()}}</ pre >
@@ -61,26 +62,27 @@ <h3>Schema</h3>
61
62
< script type ="
text/javascript "
src ="
http://cdn.jsdelivr.net/g/[email protected] "
> </ script >
62
63
< script type ="text/javascript " src ="../bower_components/tv4/tv4.js "> </ script >
63
64
< script type ="text/javascript " src ="../bower_components/ace-builds/src-min-noconflict/ace.js "> </ script >
65
+
64
66
< script type ="text/javascript " src ="../bower_components/angular/angular.js "> </ script >
65
- < script type ="text/javascript " src ="../bower_components/angular-sanitize/angular-sanitize.min.js "> </ script >
67
+ < script type ="text/javascript " src ="../bower_components/angular-sanitize/angular-sanitize.js "> </ script >
68
+
66
69
< script type ="text/javascript " src ="../bower_components/angular-ui-sortable/sortable.js "> </ script >
67
70
< script type ="text/javascript " src ="../bower_components/angular-ui-ace/ui-ace.js "> </ script >
68
71
< script type ="text/javascript " src ="../bower_components/objectpath/lib/ObjectPath.js "> </ script >
69
72
< script type ="text/javascript " src ="../bower_components/pickadate/lib/picker.js "> </ script >
70
73
< script type ="text/javascript " src ="../bower_components/pickadate/lib/picker.date.js "> </ script >
71
74
< script type ="text/javascript " src ="../bower_components/pickadate/lib/translations/sv_SE.js "> </ script >
75
+
72
76
< script type ="text/javascript " src ="../dist/schema-form.min.js "> </ script >
73
77
< script type ="text/javascript " src ="../dist/bootstrap-decorator.min.js "> </ script >
74
- < script type ="text/javascript " src ="../dist/bootstrap-datepicker.min.js "> </ script >
78
+ <!-- < script type="text/javascript" src="../dist/bootstrap-datepicker.min.js"></script> -- >
75
79
< script type ="text/javascript ">
76
80
77
- angular . module ( 'test' , [ 'schemaForm' , 'ui.ace' , 'ObjectPath' ] ) ;
78
-
79
- function TestCtrl ( $scope , $http ) {
81
+ angular . module ( 'test' , [ 'schemaForm' , 'ui.ace' ] ) . controller ( 'TestCtrl' , function ( $scope , $http ) {
80
82
81
83
$scope . tests = [
82
- { name : "Complex Key Support" , data : 'data/keys.json' } ,
83
84
{ name : "Simple" , data : 'data/simple.json' } ,
85
+ { name : "Complex Key Support" , data : 'data/complex-keys.json' } ,
84
86
{ name : "Array" , data : 'data/array.json' } ,
85
87
{ name : "Tab Array" , data : 'data/tabarray.json' } ,
86
88
{ name : "Kitchen Sink" , data : 'data/sink.json' }
@@ -144,7 +146,7 @@ <h3>Schema</h3>
144
146
alert ( msg ) ;
145
147
} ;
146
148
147
- }
149
+ } ) ;
148
150
149
151
</ script >
150
152
</ body >
0 commit comments