-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
87 lines (76 loc) · 2.98 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/lib/jquery-min.js"></script>
<script type="text/javascript" src="js/lib/underscore-min.js"></script>
<script type="text/javascript" src="js/lib/backbone.js"></script>
<script type="text/javascript" src="js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/models/bookitem.js"></script>
<script type="text/javascript" src="js/views/bookitemform.js"></script>
<script type="text/javascript" src="js/views/editbookview.js"></script>
<script type="text/javascript" src="js/views/bookitemview.js"></script>
<script type="text/javascript" src="js/views/searchbookview.js"></script>
<script type="text/javascript" src="js/routers/approuter.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">
</head>
<body>
<!-- templates -->
<script type="text/template" id="addbook_template">
<form class="form-horizontal" id="add_book" method="post" action="#">
<legend class="heading"></legend>
<!-- book name-->
<div class="control-group">
<label class="control-label" for="addbokinputBookName"><b>Book Name</b></label>
<div class="controls">
<input type="text" class="input-medium" value="<%= book_name%>" id="addbook_book_name" placeholder="Book Name">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputAuthorName"><b>Author Name</b></label>
<div class="controls">
<input type="text" class="input-medium" value="<%=author %>" id="addbook_author_name" placeholder="Author">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputStatus"><b>Read Status</b></label>
<div class="controls">
<select class="addbook_status" >
<option selected="selected" value="4">Choose Read status</option>
<option value="0">YES</option>
<option value="1">No</option>
<option value="2">Reading</option>
</select>
</div>
</div>
<div class="control-group" id="">
<div class="controls" id="saveDeleteControls">
<button type="submit" id="addbook_button" class="btn">Save</button>
<button type="button" id="deletebook_button" class="btn">Delete</button>
</div>
</div>
</form>
</script>
<script type="text/template" id="searchbook_template">
<form class="form-search" id="searchbook">
<input type="text" class="input-medium search-query" id="searchBook_book_name" placeholder="Book name">
<button type="button" id="booksearch_submit" class="btn">Search</button>
</form>
</script>
<!-- end of search book template -->
<script type="text/template" id="bookitem_template">
<a href="#edit/<%= id %>" class="btn btn-link"><%= book_name %></a>
</script>
<!--end of templates -->
<h1>Welcome to Shelfari 1.1 </h1>
<div class="container">
<ul class="nav nav-pills">
<li><a href="#">Books</a></li>
<li><a href="#menu-item/addbook">Add Book</a></li>
<li><a href="#menu-item/searchbook">Search Book</a></li>
</ul>
<div class="container bs-docs-example" id="app">
</div>
</div>
</body>
</html>