Skip to content

Commit c347200

Browse files
committed
Updated example
1 parent 78b4f4f commit c347200

File tree

2 files changed

+14
-61
lines changed

2 files changed

+14
-61
lines changed

problem.txt

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/bootstrap-example.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@
55
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
66
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
77
<style type="text/css">
8+
9+
body,html {
10+
min-height: 1400px;
11+
}
12+
813
.red {
914
border: 1px solid red;
1015
background: #fee;
1116
}
1217

13-
.ace_editor { height: 600px; font-size: 20px !important;}
18+
.ace_editor { font-size: 20px !important;}
19+
.form { height: 400px; }
20+
.schema { height: 800px; }
1421
</style>
1522
</head>
1623
<body ng-controller="TestCtrl">
@@ -22,16 +29,16 @@ <h1>Schema Form Example</h1>
2229
<h3>The Generated Form</h3>
2330
<form name="ngform" sf-model="person" sf-form="form" sf-schema="schema" sf-decorator="{{decorator}}">
2431
</form>
32+
<h3>Model</h3>
33+
<pre>{{pretty()}}</pre>
2534
</div>
2635
<div class="col-sm-8">
27-
<h3>Schema</h3>
28-
<div ui-ace="{ theme: 'monokai',mode:'json'}"
29-
ng-class="{red: !itParses}" rows="15" ng-model="schemaJson" class="form-control"></div>
3036
<h3>Form</h3>
3137
<div ui-ace="{ theme: 'monokai',mode:'json'}"
32-
ng-class="{red: !itParsesForm}" rows="15" ng-model="formJson" class="form-control"></div>
33-
<h3>Model</h3>
34-
<pre>{{pretty()}}</pre>
38+
ng-class="{red: !itParsesForm}" ng-model="formJson" class="form-control form"></div>
39+
<h3>Schema</h3>
40+
<div ui-ace="{ theme: 'monokai',mode:'json'}"
41+
ng-class="{red: !itParses}" ng-model="schemaJson" class="form-control schema"></div>
3542
</div>
3643
</div>
3744
</div>

0 commit comments

Comments
 (0)