-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
57 lines (45 loc) · 1.96 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple jQuery Form Builder - Demo</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- CSS -->
<link href="style.css" rel="stylesheet" type="text/css" />
<!-- jQuery JS -->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <!-- jQuery v1 should also work fine -->
<script src="js/jquery-ui.min.js" type="text/javascript" ></script> <!-- for sortable -->
<!-- SJFB JS -->
<script src="js/sjfb-builder.js" type="text/javascript" ></script> <!-- form builder -->
<script src="js/sjfb-html-generator.js" type="text/javascript" ></script> <!-- form generator -->
</head>
<body id="sjfb-body">
<div id="sjfb-wrap">
<h1>Simple Jquery Form Builder - Demo</h1>
<p>The form builder below was loaded in from a json string.<br>
<a href="form.html">View form (rendered from the demo json string) here</a>.
</p>
<div class="alert hide">
<h2>Success! Form saved.</h2>
<p>Here is what your saved form will look like in your database:</p>
<textarea></textarea>
</div>
<div class="add-wrap">
<h3>Add Field:</h3>
<ul id="add-field">
<li><a id="add-text" data-type="text" href="#">Single Line Text</a></li>
<li><a id="add-textarea" data-type="textarea" href="#">Multi Line Text</a></li>
<li><a id="add-select" data-type="select" href="#">Select Box (Drop down list)</a></li>
<li><a id="add-radio" data-type="radio" href="#">Radio Buttons</a></li>
<li><a id="add-checkbox" data-type="checkbox" href="#">Checkboxes</a></li>
<li><a id="add-agree" data-type="agree" href="#">Agree Box</a></li>
</ul>
</div>
<form id="sjfb" novalidate>
<div id="form-fields">
</div>
<button type="submit" class="submit">Save Form</button>
</form>
</div>
</body>
</html>