forked from dobtco/formbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (47 loc) · 1.32 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
<!doctype html>
<html>
<head>
<title>Form Builder</title>
<meta name="description" content="">
<link rel="stylesheet" href="vendor/css/vendor.css" />
<link rel="stylesheet" href="dist/formbuilder.css" />
<style>
* {
box-sizing: border-box;
}
body {
background-color: #444;
font-family: sans-serif;
}
.fb-main {
background-color: #fff;
border-radius: 5px;
min-height: 600px;
}
input[type=text] {
height: 26px;
margin-bottom: 3px;
}
select {
margin-bottom: 5px;
font-size: 40px;
}
</style>
</head>
<body>
<div class='fb-main'></div>
<script src="vendor/js/vendor.js"></script>
<script src="dist/formbuilder.js"></script>
<script>
$(function(){
fb = new Formbuilder({
selector: '.fb-main',
bootstrapData: [{"label":"Please enter your clearance number","field_type":"text","required":true,"field_options":{},"cid":"c6"},{"label":"Security personnel #82?","field_type":"radio","required":true,"field_options":{"options":[{"label":"Yes","checked":false},{"label":"No","checked":false}],"include_other_option":true},"cid":"c10"},{"label":"Medical history","field_type":"file","required":true,"field_options":{},"cid":"c14"}]
});
fb.on('save', function(payload){
console.log(payload);
})
});
</script>
</body>
</html>