forked from HenrikJoreteg/reformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
29 lines (28 loc) · 1.22 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>Form Gen Demo</title>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">
<script src="dist/reformer.bundle.js"></script>
<script src="test.js"></script>
</head>
<body>
<div class="container offset4 span8">
<h1>Reformer Demo</h1>
<p>This form is rendered entirely on the client-side by Reformer and all form behavior is managed by Reformer.</p>
<p>I'm using twitter bootstrap to add some basic styles, but the only required HTML are the name/type/value attributes of the input variables.</p>
<form id="myForm">
<div id="fields"></div>
<button class="btn primary" type="submit">Submit</button>
<button class="btn" type="submit">Cancel</button>
</form>
<form id="customForm">
<p>A form field thing here</p>
<div id="specialField"></div>
<p>Some intro text</p>
<button class="btn primary" type="submit">Submit</button>
<button class="btn" type="submit">Cancel</button>
</form>
</div>
</body>
</html>