-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (84 loc) · 3.93 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
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html ng-app="app">
<head>
<title>Modelbuilder</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link type="text/css" rel="stylesheet" href="bower_components/angular-form-builder/dist/angular-form-builder.css"/>
<link href="css/app.css" rel="stylesheet" type="text/css"/>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-form-builder/dist/angular-form-builder.js"></script>
<script src="bower_components/angular-form-builder/dist/angular-form-builder-components.js"></script>
<script src="bower_components/angular-validator/dist/angular-validator.js"></script>
<script src="bower_components/angular-validator/dist/angular-validator-rules.js"></script>
<script src="js/app.js" type="text/javascript"></script>
</head>
<body class="container-fluid" ng-controller="InitController">
<div class="fix">
<div class="row" >
<h1>angular-form-builder says: {{ greeting}} </h1>
<hr/>
<div class="row" ng-controller="BreadcrumbController">
<div class="col-md-12">
<ol class="breadcrumb">
<li ng-repeat="item in breadcrumb"><a href="#" >{{item.name}}</a></li>
</ol>
<input ng-model="_path">
<a ng-click="setPath()" class="btn btn-primary">setPath</a>
</div>
</div>
<br>
<div class="col-md-10">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Builder</h3>
</div>
<div data-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| json}}</pre>
</div>
</div>
</div>
<div class="col-md-2">
<div data-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| json}}</pre>
</div>
<div class="row">
<div class="col-md-12 footer"></div>
</div>
<div class="container">
</div>
</div>
</body>
</html>