forked from hngi/newLancerApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice_loggedin_user.html
410 lines (348 loc) · 13.5 KB
/
invoice_loggedin_user.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
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="" />
<meta name="author" content="" />
<title>Lancers</title>
<link rel="shortcut icon" href="https://res.cloudinary.com/ddu0ww15f/image/upload/c_scale,h_16/v1571841777/icons8-home-office-24_veiqea.png" type="image/x-icon">
<!-- Bootstrap core JavaScript -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 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>
<!-- Bootstrap core CSS -->
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<!-- Google imported font for pacifico -->
<link
href="https://fonts.googleapis.com/css?family=Pacifico&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet">
<!-- Font awesome icon -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="https://gagofure.github.io/css_root/flaticon.css">
<!-- Custom styles for lancer -->
<style>
body {
overflow-x: hidden;
}
#sidebar-wrapper {
min-height: 100vh;
margin-left: -15rem;
-webkit-transition: margin 0.25s ease-out;
-moz-transition: margin 0.25s ease-out;
-o-transition: margin 0.25s ease-out;
transition: margin 0.25s ease-out;
background-color: #091429 !important;
}
i {
margin-right: 14px !important;
}
#sidebar-wrapper .sidebar-heading {
padding: 0.875rem 1.25rem;
}
.sidebar-heading {
font-size: 36px;
font-family: "Pacifico", cursive;
color: azure;
font-size: normal;
font-weight: normal;
line-height: 63px;
}
#sidebar-wrapper .list-group {
width: 15rem;
}
#page-content-wrapper {
min-width: 100vw;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: 0;
}
.list-group-item {
margin-top: 1rem;
background-color: #091429 !important;
color: azure;
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 25px;
font-family: 'Ubuntu', sans-serif;
}
@media (min-width: 768px) {
#sidebar-wrapper {
margin-left: 0;
}
#page-content-wrapper {
min-width: 0;
width: 100%;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: -15rem;
}
}
.invoiceContentInner {
margin-top: 4%;
margin-left: 2%;
}
div button.inBut{
font-family: 'Ubuntu', sans-serif;
font-style: normal;
font-weight: bold;
font-size: 28px;
background-color: #0ABAB5
}
li {
margin-right: 8px;
}
.nav2 li {
margin-right: 10px;
}
h5{
padding-top: 40px;
font-family: Open Sans;
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 25px;
}
div table thead{
font-family: Open Sans;
font-style: normal;
font-weight: bold;
}
div table tbody{
font-family: Open Sans;
font-style: normal;
font-weight: normal;
}
div nav{
background: #FFFFFF;
box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.1);
}
input {
width: 500px !important;
border-radius: 5px;
text-align: left;
border: 1px solid #212121;
height: 40px;
margin-top: 40px;
margin-bottom: 30px;
}
.rounded-circle {
border-radius: 50%!important;
}
dl, ol, ul {
margin-left: 0rem;
margin-bottom: 0rem;
}
.nav-link {
display: block;
padding: .2rem 0rem;
}
.dropdown-{
color: azure !important;
}
h4 {
font-family: 'Ubuntu', sans-serif;
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 32px;
font: #262626;
}
.table th {
vertical-align: middle;
border-top: none;
}
th.alignleft, td.alignleft{
text-align: right!important;
}
div ul{
font-family: 'Ubuntu', sans-serif;
font-style: normal;
font-weight: bold;
}
</style>
</head>
<body>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<div class="bg-dark border-right bar" id="sidebar-wrapper">
<div class="sidebar-heading">Lan<span style="color:#00F9FF">c</span>ers</div>
<ul class="list-group list-group-flush">
<a href="documents.html" class="list-group-item list-group-item-action bg-light"
> <i class="fa fa-home" aria-hidden="true"></i> Dashboard</a>
<a href="client-information-active.html" class="list-group-item list-group-item-action bg-light"
> <i class="fa fa-users" aria-hidden="true"> </i> Clients</a
>
<a href="ecal_estimation.html" class="list-group-item list-group-item-action bg-light"
> <i class="fa fa-calculator" aria-hidden="true"> </i> Estimates</a
>
<div>
<a href="#" class="list-group-item list-group-item-action bg-light dropdown-toggle" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-lightbulb-o" aria-hidden="true"> </i> Projects</span></a>
<ul class="dropdown-menu projectdropdown" aria-labelledby="dropdownMenuButton" style="background-color: #091429" >
<a class="dropdown-item" style="color: azure;" href="#">Status</a>
<a class="dropdown-item" style="color: azure;" href="#">Overview</a>
<a class="dropdown-item" style="color: azure;" href="#">Colaborators</a>
<a class="dropdown-item" style="color: azure;" href="#">Task</a>
</ul>
</div>
<a href="#invoice-toggle" class="list-group-item list-group-item-action bg-light"
><i class="fa fa-file-text-o" aria-hidden="true"></i></i> Invoices</a
>
<a href="#" class="list-group-item list-group-item-action bg-light"
> <i class="fa fa-handshake-o"></i> Contract</a
>
<a href="#" class="list-group-item list-group-item-action bg-light"
> <i class="fa fa-area-chart" aria-hidden="true"></i> Proposals</a
>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content for invoice.-->
<div id="page-content-wrapper">
<nav class="navbar navbar-expand-lg navbar-light bg-light navbar-fixed-top border-bottom">
<button class="btn btn-lg" id="invoice-toggle"> <i class="fa fa-ellipsis-v" aria-hidden="true"></i></button>
<h4>Invoices</h4>
<button class="navbar-toggler"type="button" data-toggle="collapse" data-target="#navbarSupportedContent"aria-controls="navbarSupportedContent"aria-expanded="false"aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class=" nav navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item nav text-center"> <a class=" nav-link ml-3" href="#"><i class="fa fa-comments fa-2x" aria-hidden="true"></i>Support</a></li>
<li class="nav-item nav" ><a class="nav-link ml-3" href="#"> <i class="fa fa-bell fa-2x" aria-hidden="true"></i></a></li>
</ul>
<ul >
<!-- Profile image drop down -->
<div class="nav-item avatar dropdown" style="margin-left: -1.5rem;">
<a class="nav-link dropdown-toggle" id="ProfileDropDownMenu" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="true">
<img src="https://i.ibb.co/mvHrj8n/avatar.jpg" boarder="0"class="rounded-circle z-depth-0 avatar"
alt="profile image"> Juliet
</a>
<div class="dropdown-menu dropdown-menu-md-left dropdown-secondary"
aria-labelledby="ProfileDropdownMenu">
<a class="dropdown-item" href="#">Profile</a>
<a class="dropdown-item" href="#">Settings</a>
<a class="dropdown-item" href="#">Log out</a>
</div>
</div>
</ul>
</div>
</nav>
<div class="container createInvoice" id="invoice-toggle">
<div class=" container-fluid invoiceContentInner">
<div class="container"><button class="btn btn-success btn-bg inBut">Create Invoice</button>
</div>
<div class="container">
<h5>INVOICE</h5>
<div class="container row">
<input class="form-control sortInvoiceTable" type="text" data-table="table" placeholder="All" aria-label="Search">
</div>
<div class="table-responsive-md">
<table class="table table-striped table-borderedless table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>Invoice</th>
<th>Client</th>
<th>Project</th>
<th>Issued</th>
<th>Status</th>
<th style="width:40%" class="alignleft">Status</th>
</tr>
</thead>
<tbody id="invoiceTable">
<tr>
<td>1</td>
<td>Grande Agency</td>
<td>Branding</td>
<td>01/10/19</td>
<td><span class="badge badge-button badge-success"> Paid </span></td>
<td style="width:40%"class="alignleft">US$4,200.00</td>
</tr>
<tr>
<td>2</td>
<td>Gracier Inc</td>
<td>Glacier Fintech App</td>
<td>02/10/19</td>
<td><span class="badge badge-button badge-primary"> Sent </span></td>
<td style="width:40%"class="alignleft">US$8,800.00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Script -->
<script>
$("#invoice-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
(function () {
"use strict";
var TableFilter = (function () {
var search;
function dquery(selector) {
// Returns an array of elements corresponding to the selector
return Array.prototype.slice.call(document.querySelectorAll(selector));
}
function onInputEvent(e) {
// Retrieves the text to search
var input = e.target;
search = input.value.toLocaleLowerCase();
// Get the lines where to search
// (the data-table attribute of the input is used to identify the table to be filtered)
var selector = input.getAttribute("data-table") + " tbody tr";
var rows = dquery(selector);
// Searches for the requested text on all rows of the table
[].forEach.call(rows, filter);
// Updating the line counter (if there is one defined)
// (the data-count attribute of the input is used to identify the element where to display the counter)
var writer = input.getAttribute("data-count");
if (writer) {
// If there is a data-count attribute, we count visible rows
var count = rows.reduce(function (t, x) { return t + (x.style.display === "none" ? 0 : 1); }, 0);
// Then we display the counter
dquery(writer)[0].textContent = count;
}
}
function filter(row) {
// Caching the tr line in lowercase
if (row.lowerTextContent === undefined)
row.lowerTextContent = row.textContent.toLocaleLowerCase();
// Hide the line if it does not contain the search text
row.style.display = row.lowerTextContent.indexOf(search) === -1 ? "none" : "table-row";
}
return {
init: function () {
// get the list of input fields with a data-table attribute
var inputs = dquery("input[data-table]");
[].forEach.call(inputs, function (input) {
// Triggers the search as soon as you enter a search filter
input.oninput = onInputEvent;
// If we already have a value (following navigation back), we relaunch the search
if (input.value !== "") input.oninput({ target: input });
});
}
};
})();
TableFilter.init();
})();
</script>
</body>
</html>