File tree Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ <h3>The Generated Form</h3>
4242 sf-form ="form "
4343 sf-schema ="schema "
4444 ng-submit ="submitForm(ngform,modelData) ">
45- < em > before</ em > < div sf-insert-field ="name "> </ div > < em > after</ em >
4645 </ form >
4746 < h3 > Model</ h3 >
4847 < pre ng-cloak > {{pretty()}}</ pre >
@@ -103,6 +102,7 @@ <h3>Schema</h3>
103102 $scope . tests = [
104103 { name : "Simple" , data : 'data/simple.json' } ,
105104 { name : "Basic JSON Schema Type" , data : 'data/types.json' } ,
105+ { name : "Bootstrap Grid" , data : 'data/grid.json' } ,
106106 { name : "Complex Key Support" , data : 'data/complex-keys.json' } ,
107107 { name : "Array" , data : 'data/array.json' } ,
108108 { name : "Tab Array" , data : 'data/tabarray.json' } ,
Original file line number Diff line number Diff line change 1+ {
2+ "schema" : {
3+ "type" : " object" ,
4+ "title" : " Comment" ,
5+ "properties" : {
6+ "name" : {
7+ "title" : " Name" ,
8+ "type" : " string"
9+ },
10+ "email" : {
11+ "title" : " Email" ,
12+ "type" : " string" ,
13+ "pattern" : " ^\\ S+@\\ S+$" ,
14+ "description" : " Email will be used for evil."
15+ },
16+ "comment" : {
17+ "title" : " Comment" ,
18+ "type" : " string" ,
19+ "maxLength" : 20 ,
20+ "validationMessage" : " Don't be greedy!"
21+ }
22+ },
23+ "required" : [" name" ," email" ," comment" ]
24+ },
25+ "form" : [
26+ {
27+ "type" : " help" ,
28+ "helpvalue" : " <div class=\" alert alert-info\" >Grid it up with bootstrap</div>"
29+ },
30+ {
31+ "type" : " section" ,
32+ "htmlClass" : " row" ,
33+ "items" : [
34+ {
35+ "type" : " section" ,
36+ "htmlClass" : " col-xs-6" ,
37+ "items" : [" name" ]
38+ },
39+ {
40+ "type" : " section" ,
41+ "htmlClass" : " col-xs-6" ,
42+ "items" : [" email" ]
43+ }
44+ ]
45+ },
46+ {
47+ "key" : " comment" ,
48+ "type" : " textarea" ,
49+ "placeholder" : " Make a comment"
50+ },
51+ {
52+ "type" : " submit" ,
53+ "style" : " btn-info" ,
54+ "title" : " OK"
55+ }
56+ ]
57+ }
You can’t perform that action at this time.
0 commit comments