-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·308 lines (250 loc) · 13.5 KB
/
index.html
File metadata and controls
executable file
·308 lines (250 loc) · 13.5 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<!-- <link rel="icon" href="../../favicon.ico"> -->
<title>Plonk Exchange</title>
<!-- Bootstrap core CSS -->
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="navbar.css" rel="stylesheet">
<link href="signin.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <a class="navbar-brand" href="#">Login</a> -->
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active" id="login-li"><a id="login-tab" href="#Login">Login</a></li>
<li id="browse-li"><a id="browse-tab" href="#Browse">Browse</a></li>
<li id="plonk-li"><a id="plonk-tab" href="#My Plonk">My Plonk</a></li>
<li id="message-li"><a id="message-tab" href="#Messages">Messages</a></li>
<li id="profile-li"> <a id="profile-tab" href="#Profile">Profile</a></li>
<li id="register-li"> <a id="register-tab" href="#Register">Register</a></li>
<li id="logout-li"> <a id="logout-tab" href="#Logout">Logout</a></li>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
</div>
<div class="container">
<div class="signinGroup">
<form class="form-signin">
<h2 class="form-signin-heading" id="buttonTitle">Please sign in</h2>
<label for="inputEmail" class="sr-only">Email address</label>
<input name="email" type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input name="password" type="password" id="inputPassword" class="form-control" placeholder="Password" required>
<button id="loginButton" class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div>
</div> <!-- /container -->
<p>
<div class="introText">
What is Plonk? Plonk is a non-specific and derogatory term used for wine.
The term is not always used in a wholly derogatory manner. It can indicate a degree of strange affection for the wine in question.
</div>
<div class="introText">
What is The Plonk Exchange? How many times have you had guests over that bring that obligatory bottle of gift wine? Unless they know you well, chances are that bottle will end up orphaned in your basement somewhere. It might see the light of day when you take that bottle over to a friends house to unload it, usually at a large party where no one will notice. Those days are gone! Now The Plonk Exchange you can sell or trade that plonk and give that wine a loving home. One person's plonk is another person's treasure.
</div>
</p>
<div class="container">
<form class="form-register">
<h2 class="form-register-heading" id="buttonTitle">Please Register</h2>
<label for="regInputEmail" class="sr-only">Email address</label>
<input type="email" id="regInputEmail" class="form-control" placeholder="Email address" required autofocus>
<label for="regInputPassword" class="sr-only">Password</label>
<input type="password" id="regInputPassword" class="form-control" placeholder="Password" required>
<label for="confirmPassword" class="sr-only">Confirm Password</label>
<input type="password" id="confirmPassword" class="form-control" placeholder="Confirm Password" required>
<button id="registerButton" class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
</form>
</div> <!-- /container -->
<div class="container">
<form class="form-profile" id="profileForm">
<h2 class="form-profile-heading" id="buttonTitle">Please fill in profile information</h2>
<label for="inputFname" class="sr-only">First Name</label>
<input type="text" id="inputFname" class="form-control" placeholder="First Name" required autofocus>
<label for="inputLname" class="sr-only">Last Name</label>
<input type="text" id="inputLname" class="form-control" placeholder="Last Name" required autofocus>
<label for="inputUname" class="sr-only">Last Name</label>
<input type="text" id="inputUname" class="form-control" placeholder="User Name" required autofocus>
<label for="inputAddress" class="sr-only">Last Name</label>
<input type="text" id="inputAddress" class="form-control" placeholder="Address" required autofocus>
<label for="inputCity" class="sr-only">Last Name</label>
<input type="text" id="inputCity" class="form-control" placeholder="City" required autofocus>
<label for="inputState" class="sr-only">Last Name</label>
<input type="text" id="inputState" class="form-control" placeholder="State" required autofocus>
<label for="inputZip" class="sr-only">Last Name</label>
<input type="text" id="inputZip" class="form-control" placeholder="Zip Code" required autofocus>
<button id = "profileButton" class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
</form>
</div> <!-- /container -->
<div class="container">
<div id="plonkGroup">
<form class="form-plonk">
<h2 class="form-plonk-heading" id="buttonTitle">Plonk Ad Information</h2>
<label for="inputVyard" class="sr-only">Vineyard</label>
<input type="text" id="inputVyard" class="form-control" placeholder="Vineyard" required autofocus>
<label for="inputVariety" class="sr-only">Variety</label>
<input type="text" id="inputVariety" class="form-control" placeholder="Variety" required autofocus>
<label for="inputYear" class="sr-only">Year</label>
<input type="text" id="inputYear" class="form-control" placeholder="Year" required autofocus>
<label for="inputNumBottles" class="sr-only">Number of Bottle</label>
<input type="text" id="inputNumBottles" class="form-control" placeholder="Number of Bottles" required autofocus>
<label for="inputPrice" class="sr-only">Price</label>
<input type="text" id="inputPrice" class="form-control" placeholder="Price" required autofocus>
<label for="inputTrade" class="sr-only">Will Trade</label>
<input type="text" id="inputTrade" class="form-control" placeholder="Will Trade" required autofocus>
<button id = "plonkButton" class="btn btn-lg btn-primary btn-block" type="submit">Create</button>
<button id = "plonkDeleteButton" class="btn btn-lg btn-primary" type="submit">Delete</button>
<button id = "plonkSaveButton" class="btn btn-lg btn-primary" type="submit">Save</button>
</form>
</div>
</div> <!-- /container -->
<div class="container">
<div id="messageControl">
<form class="form-message">
<h2 class="form-Message-heading" id="buttonTitle">Message User</h2>
<label for="inputReceiver" class="sr-only">Vineyard</label>
<input type="text" id="inputReceiver" class="form-control" placeholder="Receiver User Name" required autofocus>
<label for="inputMessage" class="sr-only">Variety</label>
<input type="text" id="inputMessage" class="form-control" placeholder="Message" required autofocus>
<button id = "messageButton" class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
</form>
</div>
<div id="messageButtonGroup">
<button id = "showMessagesButton" class="btn btn-lg btn-primary" type="submit">Refresh</button>
<button id = "clearMessagesButton" class="btn btn-lg btn-primary" type="submit">Clear</button>
</div>
<div id="messageListTable">
<form class="form-message-table">
<table class="table table-bordered">
<thead>
<tr>
<th>Sender</th>
<th>Recipient</th>
<th>Date/Time</th>
<th>Message</th>
</tr>
</thead>
<tbody id="message-list">
<script id="message-index" type="text/x-handlebars-template">
{{#each messages}}
<tr data-message-id="{{id}}">
<td>{{sender_user_name}}</td>
<td>{{receiver_user_name}}</td>
<td>{{created_at}}</td>
<td>{{plonk_message}}</td>
</tr>
{{/each}}
</script>
</tbody>
</table>
</form>
</div>
</div> <!-- /container -->
<div class="container">
<div id="ssControls">
<form class="form-browse">
<h2 class="form-browse-heading" id="buttonTitle">Browse Plonk</h2>
<label for="inputPlonkCity" class="sr-only">Vineyard</label>
<input type="text" id="inputPlonkCity" class="form-control" placeholder="City" required autofocus>
<label for="inputPlonkType" class="sr-only">Variety</label>
<input type="text" id="inputPlonkType" class="form-control" placeholder="Wine Type" required autofocus>
<button id = "searchPlonkButton" class="btn btn-lg btn-primary" type="submit">Search</button>
<button id = "showPlonkButton" class="btn btn-lg btn-primary" type="submit">Show All</button>
</form>
</div>
</div> <!-- /container -->
<div class="container">
<div id="plonkListTable">
<form class="form-browse-table">
<table class="table table-bordered" id="plonk-table">
<thead>
<tr>
<th>Vineyard</th>
<th>Variety</th>
<th>Year</th>
<th>Number of Bottles</th>
<th>Price</th>
<th>Will Trade</th>
<th>Owner</th>
</tr>
</thead>
<tbody id="plonk-list">
<script id="plonk-index" type="text/x-handlebars-template">
{{#each plonks}}
<tr class="plonkRow"
data-vineyard="{{vineyard}}"
data-variety="{{variety}}"
data-year="{{year}}"
data-numBottles="{{number_of_bottles}}"
data-price="{{price}}"
data-will_trade="{{will_trade}}"
data-uname="{{user_name}}"
data-id="{{id}}">
<td>{{vineyard}}</td>
<td>{{variety}}</td>
<td>{{year}}</td>
<td>{{number_of_bottles}}</td>
<td>{{price}}</td>
<td>{{will_trade}}</td>
<td>{{user_name}}</td>
</tr>
{{/each}}
</script>
</tbody>
</table>
</form>
</div>
</div> <!-- /container -->
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div id ="modalHeader" class="modal-header">
<h2>Modal Header</h2>
</div>
<div class="modal-body" >
<p id="messageText">Some text in the Modal Body</p>
</div>
<div class="modal-footer">
<button type="button" id="closeButton" class="btn btn-med btn-default">Close</button>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="callbacks.js" defer charset="utf-8"></script>
<script type="text/javascript" src="index.js" defer charset="utf-8"></script>
<script src="app.js" type="application/javascript" charset="utf-8" defer></script>
<script type="text/javascript" src="assets/handlebars-v3.0.3.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
</body>
</html>