forked from mike-marcacci/angular-schema-form-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
71 lines (62 loc) · 1.46 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<style type="text/css">
sf-builder {
display: block;
padding: 20px;
background: rgb(144, 211, 45);
}
.sf-builder-decorator {
border: 1px solid transparent;
position: relative;
display: block;
padding: 8px;
margin: 8px 0;
}
.sf-builder-decorator:hover {
border-color: rgba(0,0,0,0.2);
}
.sf-builder-decorator:hover .sf-builder-controls-handle {
position: absolute;
top: -1px;
right: 100%;
bottom: -1px;
margin-right: 1px;
width: 14px;
background: rgba(0,0,0,0.2);
cursor: move;
}
</style>
<sf-builder-palette class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">Types</div>
</div>
<div class="panel-body">
<ul>
<li ng-repeat="(type, definition) in types">{{ definition.title || type }}</li>
</ul>
</div>
</div>
</sf-builder-palette>
<sf-builder-designer class="col-md-6">
<div
sf-model="model"
sf-schema="schema"
sf-form="form"
></div>
</sf-builder-designer>
<sf-builder-inspector class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">Inspector</div>
</div>
<div class="panel-body" ng-if="!types[inspected.type]">Form type not supported.</div>
<div class="panel-body" ng-if="types[inspected.type]">
<div
sf-model="inspected"
sf-schema="types[inspected.type].schema"
sf-form="types[inspected.type].form"
></div>
</div>
</div>
</sf-builder-inspector>
<div class="clearfix"></div>