forked from kelp404/angular-form-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (66 loc) · 3.02 KB
/
index.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
71
<!doctype html>
<html ng-app="app">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>angular-form-builder</title>
<link type="text/css" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="example/site.css"/>
<link type="text/css" rel="stylesheet" href="dist/angular-form-builder.css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="//code.angularjs.org/1.2.20/angular.min.js"></script>
<script type="text/javascript" src="dist/angular-form-builder.js"></script>
<script type="text/javascript" src="dist/angular-form-builder-components.js"></script>
<script type="text/javascript" src="//kelp404.github.io/angular-validator/dist/angular-validator.min.js"></script>
<script type="text/javascript" src="//kelp404.github.io/angular-validator/dist/angular-validator-rules.min.js"></script>
<script type="text/javascript" src="example/demo.js"></script>
</head>
<body class="container" ng-controller="DemoController">
<div class="row">
<h1>angular-form-builder</h1>
<hr/>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Builder</h3>
</div>
<div fb-builder="default"></div>
<div class="panel-footer">
<div class="checkbox">
<label><input type="checkbox" ng-model="isShowScope" />
Show scope
</label>
</div>
<pre ng-if="isShowScope">{{form}}</pre>
</div>
</div>
</div>
<div class="col-md-6">
<div fb-components></div>
</div>
</div>
<div class="row">
<h2>Form</h2>
<hr/>
<form class="form-horizontal">
<div ng-model="input" fb-form="default" fb-default="defaultValue"></div>
<div class="form-group">
<div class="col-md-8 col-md-offset-4">
<input type="submit" ng-click="submit()" class="btn btn-default"/>
</div>
</div>
</form>
<div class="checkbox">
<label><input type="checkbox" ng-model="isShowScope" ng-init="isShowScope=true" />
Show scope
</label>
</div>
<pre ng-if="isShowScope">{{input}}</pre>
</div>
<div class="row">
<div class="col-md-12 footer"></div>
</div>
<a href="https://github.com/kelp404/angular-form-builder" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>