-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend-form.html
More file actions
50 lines (41 loc) · 1.39 KB
/
send-form.html
File metadata and controls
50 lines (41 loc) · 1.39 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Data Form Example</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="./dataform.js"></script>
</head>
<body style="padding:4em;">
<div class="container">
<div class="col-md-5 col-md-offset-2">
<H3>Recipe Keeper</H3>
<form id="x-login-form">
<div class="form-group">
<label for="xuser">Recipe Serve</label>
<input type="text" name="iuser" class="form-control" />
</div>
<div class="form-group">
<label for="userType">Type</label>
<select class="form-control" name="userType" data-list="" data-change=""></select>
</div>
<div class="form-group">
<label for="xpass">Ingredients</label>
<textarea rows="2" cols="50" name="xpass" class="form-control" ></textarea>
</div>
<div class="form-group">
<label for="comment">Steps</label>
<textarea rows="4" cols="50" name="comment" class="form-control" ></textarea>
</div>
<input type="submit" class="btn btn-danger" value="Submit" class="form-control" />
</form>
</div>
</div>
<!-- Your script will come here -->
<script type="text/javascript">
var form = document.getElementById('x-login-form');
var dataForm = new DataForm(form, "https://api.metamug.com/recipe/v1.0/form");
dataForm.load(2);
</script>
</body>
</html>