forked from ga-wdi-boston/jquery-ajax-post
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (45 loc) · 1.97 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
<!DOCTYPE html>
<html>
<head>
<title>jQuery AJAX</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Do not add `link` tags unless you know what you are doing -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- Do not add `script` tags unless you know what you are doing -->
<script src="public/vendor.js" type="text/javascript" charset="utf-8" defer></script>
<script src="public/application.js" type="text/javascript" charset="utf-8" defer></script>
</head>
<body class="container-fluid">
<h1>Book CRUD</h1>
<h2>Get All Books</h2>
<form class='books' id='books-search'>
<div class="form-group">
</div>
<button type="submit" class="btn btn-default">Get All Books</button>
</form>
<br />
<h2>Get One Book</h2>
<form class='books' id='book-search'>
<div class="form-group">
<input type="text" name="book[id]" id="book-id" placeholder="Resource ID Here">
</div>
<button type="submit" class="btn btn-default">Get Book</button>
</form>
<h2>Delete One Book</h2>
<form class='books' id='book-delete'>
<div class="form-group">
<input type="text" name="book[id]" id="book-id-delete" placeholder="Resource ID Here">
</div>
<button type="submit" class="btn btn-default">Delete Book</button>
</form>
<h2>Update One Book</h2>
<form class='books' id='book-update'>
<div class="form-group">
<input type="text" name="book[id]" id="book-id-update" placeholder="Resource ID Here">
<input type="text" name="book[title]" author="book-title-update" placeholder="Resource Title Here">
<input type="text" name="book[author]" author="book-author-update" placeholder="Resource Author Here">
</div>
<button type="submit" class="btn btn-default">Update Book</button>
</form>
</body>
</html>