-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomers.html
190 lines (171 loc) · 8.79 KB
/
customers.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--Bootstrap-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- custom css-->
<link rel="stylesheet" href="./css/style.css">
<!-- Font Awesome Font Kit-->
<script src="https://kit.fontawesome.com/a71bc7919e.js" crossorigin="anonymous"></script>
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css2?family=Staatliches&display=swap" rel="stylesheet">
<title>The Vault</title>
</head>
<body>
<!--DASH SIDEBAR-->
<div id="dash-sidebar">
<div id="dash-logo">
<i class="fas fa-atom fa-3x"></i>
<h2>The Vault Games</h2>
</div>
<ul id="dash-nav">
<li class="dash-btn" id="dash-btn-1"><a href="dashboard.html">Dashboard</a></li>
<li class="dash-btn" id="dash-btn-2"><a class="static" href="#">Customers</a></li>
<li class="dash-btn" id="dash-btn-3"><a href="orders.html">Orders</a></li>
<li class="dash-btn" id="dash-btn-4"><a href="products.html">Products</a></li>
<li class="dash-btn" id="dash-btn-5"><a href="customerAddresses.html">Customer Addresses</a></li>
</ul>
</div>
<!--MAIN CONTENT-->
<div id="content-box">
<div id="table-wrapper">
</div>
<div id="bottom-ctrl">
<div id="bottom-count">
<div id="count-card" class="card">
<div class="card-body">
<h5 class="card-title">Active Customer Count!</h5>
<p id="cust-num"></p>
</div>
</div>
</div>
<div id="bottom-search">
<form id="bottom-srch-frm">
<div class="form-group">
<label for="inputCustomerSearch">Search</label>
<input type="text" class="form-control" id="inputCustomer" aria-describedby="searchHelp">
<small id="searchHelp" class="form-text text-muted">Search for a customer by partial last name. select a customer before adding an address or order!</small>
</div>
<button id="btn-search-cust" type="button" class="btn btn-primary">Search Customer</button>
<button id="btn-add-cust" type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Open Customer Entry Form">Add New Customer</button>
<button id="btn-add-cAddr" type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Open Customer Entry Form">Add Customer Address</button>
<button id="btn-del-cust" type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="First Select a Customer Above">Delete Customer</button>
<button id="btn-ord-cust" type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="First Select a Customer Above">Add Order</button>
</form>
</div>
</div>
</div>
<!-- ADD CUSTOMER LIGHTBOX-->
<div class="invisible ltbox-bckdrp" id="cust-ltbox-bckdrp-1">
<div id="ltbox-form-wrap-cust1">
<div id="ltbox-ctrl">
<div id="ltbox-crt-x"><a href="#"><i id="cust-close-1" class="fas fa-times fa-lg"></i></a></div>
</div>
<form id="ltbox-form">
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">First Name</label>
<input type="text" class="form-control" id="customer-fname" placeholder="First Name">
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Last Name</label>
<input type="text" class="form-control" id="customer-lname" placeholder="Last Name">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">Email</label>
<input type="email" class="form-control" id="customer-email" placeholder="Email">
</div>
<div class="form-group col-md-6">
</div>
</div>
<button type="button" class="btn btn-primary" id="btn-add-customer">Add Customer</button>
</form>
</div>
</div>
<!-- ADD CUSTOMER ADDRESS LIGHTBOX-->
<div class="invisible ltbox-bckdrp" id="cust-ltbox-bckdrp-2">
<div id="ltbox-form-wrap-cust2">
<div id="ltbox-ctrl">
<div id="ltbox-crt-x"><a href="#"><i id="cust-close-2" class="fas fa-times fa-lg"></i></a></div>
</div>
<form id="ltbox-form">
<div class="form-group">
<label for="inputAddress">Address</label>
<input type="text" class="form-control" id="customer-addr1" placeholder="1234 Main St">
</div>
<div class="form-group">
<label for="inputAddress2">Address 2</label>
<input type="text" class="form-control" id="customer-addr2" placeholder="Apartment, studio, or floor">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" id="customer-city">
</div>
<div class="form-group col-md-4">
<label for="inputState">State</label>
<input type="text" class="form-control" id="customer-state">
</select>
</div>
<div class="form-group col-md-2">
<label for="inputZip">Zip</label>
<input type="text" class="form-control" id="customer-zip">
</div>
</div>
<button type="button" class="btn btn-primary" id="btn-add-cAddr-form">Add Customer Address</button>
</form>
</div>
</div>
<!-- ADD ORDER LIGHTBOX-->
<div class="invisible ltbox-bckdrp" id="cust-ltbox-bckdrp-3">
<div id="ltbox-form-wrap-cust-ord">
<div id="ltbox-ctrl" class="cust-ord-ctrl">
<div id="ltbox-crt-x"><a href="#"><i id="cust-close-3" class="fas fa-times fa-lg"></i></a></div>
</div>
<div id="cust-ord-table" class="border">
<table id="big-table" class="table c-ord-tbl">
</table>
</div>
<form id="ltbox-form-ord">
<div class="form-row" id="form-ord-row">
<div class="form-group col-md-6">
<input type="text" class="form-control" id="order-item" placeholder="enter product id">
</div>
<div class="form-group col-md-3">
<input type="text" class="form-control" id="itemQuantity" placeholder="item quantity">
</div>
<div class="form-group col-md-3">
<input type="text" class="form-control" id="itemQuantity" placeholder="item price">
</div>
</div>
<div id="cust-ord-btn-wrap">
<button type="button" class="btn btn-primary" id="btn-cust-ord">Add Customer Order</button>
<button type="button" class="btn btn-primary" id="btn-add-ord-item">Add Another Item</button>
</div>
</form>
</div>
</div>
<!--ALERT-->
<div id="select-alert" class="alert alert-danger" role="alert">
You may only select one item at a time!
</div>
<!--Bootstrap JS-->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!--LIGHTBOX JS-->
<script src="js/lightbox.js"></script>
<!--USER INTERFACE INTERACTION JS-->
<script type="module" src="js/ui_interact.js"></script>
<!--BUILD TABLES JS-->
<script type="module" src="js/buildTables.js"></script>
<!--CLIENT JS-->
<script type="module" src="js/client.js"></script>
<!--CONFIIG JS-->
<script type="module" src="js/config.js"></script>
</body>
</html>