forked from viv9k/personalWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
workLoggingSystem.html
480 lines (453 loc) · 23.7 KB
/
workLoggingSystem.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
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FOSSboy</title>
<meta name="viewport" content= "width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="resources/icons/favicon.png">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style/workLoggingSystem.css">
<script src="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.css" />
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.13.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.13.1/firebase-firestore.js"></script>
<script src="script/workLoggingSystemData.js"></script>
<script src="script/firebaseScriptLogWork.js"></script>
</head>
<body>
<!-- Header Section -->
<div class="row" id="head">
<div class="col-md-2"></div>
<div class="col-md-2" id="createNewTaskButton">
<button id="createNewTaskButton">Create New Task</button>
</div>
<div class="col-md-2">
<button id="allTaskButton">All Task</button>
</div>
<div class="col"></div>
<div class="col" id="userName">
Guest
</div>
<div class="col" id="login">
<button id="loginButton">Login</button>
<button id="signOutButton">Sign Out</button>
</div>
<div class="col-md-3"></div>
</div>
<div class="row" id="slogan">
<div class="col" id="sloganContent">
</div>
</div>
<div class="row" id="loginBody">
<div class="col">
</div>
<div class="col" id="loginContent">
<div class="row">
<div class="col-md-1" id="backToMain">
<span class="material-icons">
keyboard_backspace
</span>
</div>
<div class="col"></div>
</div>
<div class="row">
<div class="col">
<div id="firebaseui-auth-container"></div>
<div id="loader">Loading...</div>
</div>
</div>
</div>
<div class="col"></div>
</div>
<div class="row loadingPage">
<div class="col"></div>
<div class="col">
<div class="spinner-border text-success" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<div class="col"></div>
</div>
<div class="row" id="bodyContent">
<div class="col">
<div class="row" id="jobList">
<div class="col" id="jobTickets">
<!-- Frame Template -->
<!-- frame details -->
<!-- <div class="row jobTicket">
<div class="col-md-4 jobTicketCard" id="y" onclick="showDetails('y')">
<div class="row frameHead">
<div class="col-md-3">
<div class="row">
<div class="col menu">Id:</div>
<div class="col frameId">B0001</div>
</div>
</div>
<div class="col frameTitle">Ivestigation on job</div>
</div>
<div class="row frameContent">
<div class="col-md-4">
<div class="row">
<div class="col menu">Priority:</div>
<div class="col priority">High</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div class="col menu">Assignee:</div>
<div class="col assignee">Vivek</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div class="col menu">Creator:</div>
<div class="col creator">Vivek</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div class="row detailsRow" id="yDetails">
<div class="col">
<div class="row part">
<div class="col-md-2">
<button>Log Work</button>
</div>
<div class="col-md-2">
<div class="row">
<div class="col menu">Id:</div>
<div class="col menuData">B0001</div>
</div>
</div>
<div class="col detailsTitle">Investigation on job</div>
<div class="col-md-2 editButton">
<button id="editDetailsButton">Edit</button>
</div>
</div>
<div class="row part">
<div class="col-md-2 menu">Description: </div>
<div class="col">
<div class="row desBox">
<div class="col">dasfjhdalfkadhfnasjkndjl uoasjkfajlsh ldjhlhd aasfhjkajkksakhasjdka;dja luishdljasiljdiasj djasjdiljasilfjilajild jasij dijasjilasjd</div>
</div>
</div>
<div class="col-md-1">
</div>
</div>
<div class="row part">
<div class="col">
<div class="row">
<div class="col menu">Priority:</div>
<div class="col menuData">High</div>
</div>
</div>
<div class="col"></div>
<div class="col">
<div class="row">
<div class="col menu">Difficulty:</div>
<div class="col menuData">Medium</div>
</div>
</div>
<div class="col"></div>
<div class="col">
<div class="row">
<div class="col menu">Assignee:</div>
<div class="col menuData">Vivek</div>
</div>
<br>
<div class="row">
<div class="col menu">Creator:</div>
<div class="col menuData">Vivek</div>
</div>
</div>
</div>
<div class="row part">
<div class="col-md-3">
<div class="row">
<div class="col menu">Extimated Time:</div>
<div class="col menuData">10h</div>
</div>
<br>
<div class="row">
<div class="col menu">Logged Time:</div>
<div class="col menuData">10h</div>
</div>
</div>
<div class="col"></div>
<div class="col-md-5">
<div class="row">
<div class="col menu">% of Work Code (Out of 100%):</div>
<div class="col menuData">20%</div>
</div>
</div>
<div class="col"></div>
<div class="col-md-3">
<div class="row">
<div class="col menu">Status:</div>
<div class="col menuData">UnderDevelopment</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> -->
<!-- loading spinner -->
</div>
</div>
</div>
</div>
<!-- create new task -->
<div class="row" id="createNewTask">
<div class="col-md-2"></div>
<div class="col">
<div class="row" id="createNewTaskForm">
<div class="col">
<div class="row">
<div class="col-md-1" id="backToMainFromCreateNewTask">
<span class="material-icons">
keyboard_backspace
</span>
</div>
<div class="col"></div>
</div>
<div class="row formComponent">
<div class="col-md-2 menu">Title:</div>
<div class="col menuTitle">
<input type="text" name="title" id="titleCreateNewTask">
</div>
</div>
<div class="row formComponent">
<div class="col-md-2 menu">Description:</div>
<div class="col menuDes">
<input type="text" name="des" id="desCreateNewTask">
</div>
</div>
<div class="row formComponent">
<div class="col">
<div class="row">
<div class="col-md-4 menu">Priority:</div>
<div class="col menuPriority">
<input type="text" name="priority" id="priorityCreateNewTask" list="priorityTypes">
<datalist id="priorityTypes">
<option value="High"></option>
<option value="Medium"></option>
<option value="Low"></option>
</datalist>
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-md-4 menu">Difficulty:</div>
<div class="col menuDifficulty">
<input type="text" name="difficulty" id="difficultyCreateNewTask" list="difficultyTypes">
<datalist id="difficultyTypes">
<option value="High"></option>
<option value="Medium"></option>
<option value="Low"></option>
</datalist>
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-md-4 menu">Creator:</div>
<div class="col menuCreator">
<input type="text" name="creator" id="creatorCreateNewTask">
</div>
</div>
<br>
<div class="row">
<div class="col-md-4 menu">Assignee:</div>
<div class="col menuAssignee">
<input type="text" name="assignee" id="assigneeCreateNewTask">
</div>
</div>
</div>
</div>
<div class="row formComponent">
<div class="col">
<div class="row">
<div class="col-md-4 menu">Estimated Time:</div>
<div class="col menuETime">
<input type="number" name="estimatedTime" id="estimatedTimeCreateNewTask">
Hours.
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-md-4 menu">Status:</div>
<div class="col menuStatus">
<input type="text" name="status" id="statusCreateNewTask" list="statusTypes">
<datalist id="statusTypes">
<option value="Icebox"></option>
<option value="Ready to start"></option>
<option value="Under Progress"></option>
<option value="Blocked"></option>
<option value="Completed"></option>
</datalist>
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-md-4 menu">Category:</div>
<div class="col menuCategory">
<input type="text" name="category" id="categoryCreateNewTask" list="categoryTypes">
<datalist id="categoryTypes">
<option value="Business"></option>
<option value="Development"></option>
<option value="Marketting"></option>
</datalist>
</div>
</div>
</div>
</div>
<div class="row formComponent">
<div class="col"></div>
<div class="col-md-2" id="createNewTaskSubmit">
<button id="submitNewTask">Submit</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-2"></div>
</div>
<!-- log work -->
<div class="row" id="logWork">
<div class="col">
<div class="row logWorkForm">
<div class="col-md-2"></div>
<div class="col logWorkFormComponent">
<div class="row">
<div class="col-md-1" id="backToMainFromLogWork">
<span class="material-icons">
keyboard_backspace
</span>
</div>
<div class="col"></div>
</div>
<div class="row part">
<div class="col-md-4">
<div class="row">
<div class="col menu">Id:</div>
<div class="col menuData" id="logWorkId"></div>
</div>
</div>
<div class="col detailsTitle" id="logWorkTitle"></div>
</div>
<div class="row part">
<div class="col menu">Extimated Time:</div>
<div class="col menuData" id="logWorkET"></div>
</div>
<div class="row part">
<div class="col menu">Total Logged Time:</div>
<div class="col menuData" id="logWorkTotalTime"></div>
</div>
<div class="row part">
<div class="col menu">Remaining Time:</div>
<div class="col menuData" id="logWorkRT">NAN</div>
</div>
<div class="row part">
<div class="col-md-4 menu">Log Hours:</div>
<div class="col menuLTime">
<input type="number" name="logTime" id="logWorkTime">
Hours.
</div>
</div>
<div class="row part">
<div class="col-md-4 menu">% of Work Code (Out of 100%):</div>
<div class="col menuLWorkDone">
<input type="number" name="workDone" id="logWorkDone">
%.
</div>
</div>
<div class="row part">
<div class="col-md-4 menu">Status:</div>
<div class="col menuStatus">
<input type="text" name="status" id="logWorkStatus" list="statusTypes">
<datalist id="statusTypes">
<option value="Icebox"></option>
<option value="Ready to start"></option>
<option value="Under Progress"></option>
<option value="Blocked"></option>
<option value="Completed"></option>
</datalist>
</div>
</div>
<div class="row part">
<div class="col-md-4 menu">Comment:</div>
<div class="col menuLTime">
<input type="text" name="workComment" id="logWorkComment" size="100">
</div>
</div>
<div class="row part">
<div class="col"></div>
<div class="col-md-2" id="logWorkSubmit">
<button id="logWorkSubmit">Submit</button>
</div>
</div>
</div>
<div class="col-md-2"></div>
</div>
</div>
</div>
<!-- On task Successfull -->
<div class="row" id="successful">
<div class="col">
<div class="row" id="completedSuccussfully">
<div class="col"></div>
<div class="col">
<span class="material-icons">
done_outline
</span>
</div>
<div class="col"></div>
</div>
</div>
</div>
<!-- All Task -->
<div class="row" id="allTaskPage">
<div class="col">
<div class="row" id="allTaskMenu">
<div class="col"></div>
<div class="col-md-3">
<h1><-- Completed--></h1>
</div>
<div class="col"></div>
</div>
<div class="row" id="selectedContent">
<div class="col">
<div class="row" id="taskList">
<div class="col" id="taskTickets">
</div>
</div>
</div>
</div>
</div>
</div>
<link rel="stylesheet" href="style/fonts.css">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<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>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="script/workLoggingSystemFrames.js"></script>
<script src="script/workLoggingSystem.js"></script>
<script src="script/firebaseLogin.js"></script>
</body>
</html>