forked from kereru-2014/MobileLibraryWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
68 lines (67 loc) · 3.29 KB
/
app.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="MobileLibrary" content="Library management for the future">
<link rel="icon" type="image/png" href="/web/favicon.ico" />
<title>MobileLibrary</title>
<!-- js library script refs -->
<script type="text/javascript" src="/web/js/libraries/jquery-2.1.1.js"></script>
<script type="text/javascript" src="/web/js/libraries/jquery-ui.js"></script>
<script type="text/javascript" src="/web/js/libraries/knockout-3.2.0.js"></script>
<!-- application js script refs -->
<script type="text/javascript" src="/web/js/AppPlumbing.js"></script>
<script type="text/javascript" src="/web/js/HomeViewModel.js"></script>
<script type="text/javascript" src="/web/js/HomeController.js"></script>
<script type="text/javascript" src="/web/js/AppRoutes.js"></script>
<script type="text/javascript" src="/web/js/AppStart.js"></script>
<!-- css links -->
<link rel="stylesheet" href="/web/css/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="/web/css/booklist.css" type="text/css">
<link rel="stylesheet" href="/web/css/nav.css" type="text/css">
</head>
<body>
<ul class="hmenu">
<%= render 'devise/menu/registration_items' %>
<%= render 'devise/menu/login_items' %>
</ul>
<%= yield %>
<div id='wrap'>
<h1>
Hello Juliet! This is your library
</h1>
<div id="dialog" title="Add Book">
<form data-bind="submit: newBook">
<label for="title">Title:</label> <input type="text" name="title">
<label for="author">Author:</label> <input type="text" name="author">
<label for="ISBN">ISBN:</label> <input type="text" name="ISBN">
<label for="image_url">Image:</label> <input type="text" name="image_url">
<button id="persistNewBookButton" type="submit">Submit</button>
</form>
</div>
<!-- Unless you are uncommenting this out dynamically with JS then don't commit commented out code. -->
<!--<div id="dialogLendInfo" title="Change Lending Info">
<form data-bind="submit: updateLend">
<label for="title" data-bind='text: title'>Title:</label>
<label for="author" data-bind='text: author'>Author:</label>
<label for="lent_date" data-bind='lent_date'>Lent Date:</label>
<button id="PatchBook" type="submit">Submit</button>
</form>
</div> -->
<div class="modalButton pure-u-4-5">
<button id="addToBookList" class="pure-button">Add Book</button>
</div>
<div id='box'>
<div data-bind="foreach: bookList">
<div class="bookobject">
<img data-bind='attr: {src: image_url}' height="105" width="77">
<div class='bookdetails id' data-bind='text: id'></div>
<div class='bookdetails title' data-bind='text: title'></div>
<div class='bookdetails' data-bind='text: author'></div>
<div class='bookdetails' data-bind='text: ISBN'></div>
<div class='bookdetails' data-bind='text: image_url'></div>
</div>
</div>
</div>
</div>
</body>
</html>