-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (183 loc) · 9.92 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
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
<!DOCTYPE html>
<html>
<head>
<title>Nozama</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>
<nav class="my-navbar navbar navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<div class="my-company-name" href="#">Nozama</div>
</div>
<ul class="nav navbar-nav navbar-right">
<li data-toggle="dropdown" class="dropdown-toggle"><a href="#"><span class="glyphicon glyphicon-user"></span></a></li>
<ul class="dropdown-menu">
<li id="sign-up-modal"><a href="#">Sign-up</a></li>
<li id="sign-in-modal"><a href="#">Sign-in</a></li>
<li id="chng-pw-modal"><a href="#">Change-Password</a></li>
<li id="sign-out-modal"><a href="#">Sign-out</a></li>
<li class="divider"></li>
<li id="select-view-order-history-btn"><a href="#">View Order History</a></li>
</ul>
<li><a href="#"><span id="open-shopping-cart" class="glyphicon glyphicon-shopping-cart"></span></a></li>
</ul>
</div>
<div id="alert-id" class="alert alert-success alert-styling">Item added to cart</div>
</nav>
<!-- Button trigger view-order-history modal -->
<!-- <button type="button" id="select-view-order-history-btn" class="btn btn-primary btn-md" data-target="myViewOrderHistoryModal">
View Order History
</button> -->
<!-- This is the side-drawer user as the 'shopping cart' -->
<div id="mySidenav" class="sidenav">
<div class="cart-header-wrapper">
<span class = "cart-header">Shopping Cart</span>
<a id="close-shopping-cart" class="closebtn">X</a>
</div>
<!-- handlebars to display products in cart-->
<div id="cartHandlebar"></div>
<!-- stripe payment form -->
<script src="https://checkout.stripe.com/checkout.js"></script>
<!-- <button id="checkoutBtn">Checkout</button> -->
<div class="checkout-button-wrapper">
<button type="button" class="my-checkout-button btn btn-primary" id="checkoutBtn">Checkout</button>
</div>
<script>
</script>
<!-- <div id="stripePmtForm">
<form id="stripeCheckout" onSubmit="">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_1uSrps2fqlCACMqKQyrfBwbr"
data-amount="2000"
data-name="Nozama"
data-description="Enter payment information"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto">
</script>
</form>
</div> -->
</div>
</div>
</div>
<div class="container-fluid">
<!-- placeholder for alert to user, i.e. when
adding an item to the cart -->
<!-- <div id="alert-id" class="alert alert-success alert-styling">Item added to cart</div> -->
<!-- buildout views here -->
<!-- handlebars to display all products-->
<div id="products" class="productView"></div>
<!-- START Sign-up-modal -->
<div class="modal fade" id="mySignUpModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Sign-up</h4>
</div>
<div class="modal-body">
<form id="sign-up">
<div class="form-group">
<label for="name">Email</label>
<input type="text" name="credentials[email]" class="form-control" placeholder="Email">
<label for="name">Password</label>
<input type="password" name="credentials[password]" class="form-control" placeholder="Password">
<label for="name">Password Confirmation</label>
<input type="password" name="credentials[password_confirmation]" class="form-control" placeholder="Confirm Password">
</div>
<input type="submit" class="btn btn-default" name="submit" value="Sign up!">
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
<h5 class="form-error" id="tempSignUpError"></h5>
</form>
</div>
</div>
</div>
</div>
<!-- END Sign-up-modal -->
<!-- START Sign-in-modal -->
<div class="modal fade" id="mySignInModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Sign-in</h4>
</div>
<div class="modal-body">
<form id="sign-in">
<div class="form-group">
<label for="name">Email</label>
<input type="text" name="credentials[email]" class="form-control" placeholder="Email">
<label for="name">Password</label>
<input type="password" name="credentials[password]" class="form-control" placeholder="Password">
</div>
<input type="submit" class="btn btn-default" name="submit" value="Sign in!">
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
<h5 class="form-error" id="tempSignInError"></h5>
</form>
</div>
</div>
</div>
</div>
<!-- END Sign-in-modal -->
<!-- START Change-password-modal -->
<div class="modal fade" id="myPwChangeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Change Password</h4>
</div>
<div class="modal-body">
<form id="change-password">
<div class="form-group">
<label for="name">Old Password</label>
<input type="password" name="passwords[old]" class="form-control" placeholder="Old Password">
<label for="name">New Password</label>
<input type="password" name="passwords[new]" class="form-control" placeholder="New Password">
</div>
<input type="submit" class="btn btn-default" name="submit" value="Change Password!">
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
<h5 class="form-error" id="tempChangePasswordError"></h5>
</form>
</div>
</div>
</div>
</div>
<!-- END Change-password-modal -->
<!-- START View Order History modal -->
<div class="modal fade" id="myViewOrderHistoryModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">View Order History</h4>
</div>
<div class="modal-body">
<!-- handlebars to display all products-->
<div id="display-orders" class="displayAllOrdersView"></div>
</div>
<div class="modal-footer" id="view-order-history-footer">
</div>
</div>
</div>
</div>
<!-- END View Order History-modal -->
</div>
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<!--we shouldn't need the below scripts. Browser template takes care of loading jQuery, boostrap js, etc.-->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../../dist/js/bootstrap.min.js"></script> -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!-- <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script> -->
</body>
</html>