-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
146 lines (131 loc) · 7.96 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
<html>
<head>
<!-- bootstrap related files -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<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.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<!-- jquery import -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- font awesome for the icons -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" >
<!-- custom styles -->
<link rel="stylesheet" href="styles.css" >
<!-- firebase related files -->
<script src="https://www.gstatic.com/firebasejs/4.8.0/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.6.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.6.2/firebase-firestore.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBt_X6-KU6YCrGY6yjGxmI7M8AtKLcCn-E",
authDomain: "student-app-e2438.firebaseapp.com",
databaseURL: "https://student-app-e2438.firebaseio.com",
projectId: "student-app-e2438",
storageBucket: "student-app-e2438.appspot.com",
messagingSenderId: "668082011465"
};
firebase.initializeApp(config);
</script>
<!-- initialize script -->
<script src="initialize.js"></script>
<!-- filtering scripts -->
<script src="filter.js"></script>
<!-- custom script -->
<script src="script.js"></script>
</head>
<body>
<div class="alert alert-success text-center" id="dashboard" role="alert">
<h1> Employees DASHBOARD </h1>
</div>
<div class="container">
<!-- button to create an employee -->
<button class="btn btn-success" id="createEmployee">
Create Employee <i class="fa fa-plus" aria-hidden="true"></i>
</button>
<!-- Filters drop down -->
<div class="btn-group pull-right">
<button type="button"
class="btn btn-default dropdown-toggle"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
Default Employee Filters <i class="fa fa-filter" aria-hidden="true"></i>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" id="onlyMalesFilter"> Male only</a>
<a class="dropdown-item" id="fullTimeFilter"> Full-time only</a>
<a class="dropdown-item" id="olderThenFilter"> Older than 30</a>
<a class="dropdown-item" id="ageBetweenFilter"> Older than 35, but younger than 50</a>
<a class="dropdown-item" id="yearsOfExperienceFilter"> Female and 5 to 10 years of experience</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" id="clearFilter"> Clear Filter</a>
</div>
</div>
<!-- input to seach for an employee -->
<input class="btn btn-default pull-right" placeholder="Search by name..." id="searchEmployee"> </input>
<div id="operationStatus"></div>
<div class="employeeForm">
<div class="form-row">
<div class="form-group col-md-4">
<label for="fname">First Name</label>
<input type="text" class="form-control" id="fname" placeholder="First Name">
</div>
<div class="form-group col-md-4">
<label for="lname">Last Name</label>
<input type="text" class="form-control" id="lname" placeholder="Last Name">
</div>
<div class="form-group col-md-4">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Email address">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="age">Age</label>
<input type="number" class="form-control" id="age">
</div>
<div class="form-group col-md-4">
<label for="gender">Gender</label>
<select id="gender" class="form-control">
<option>Male</option>
<option>Female</option>
</select>
</div>
<div class="form-group col-md-4">
<label for="yearsOfExperience">Years of Experience</label>
<input type="text" class="form-control" id="yearsOfExperience">
</div>
</div>
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="isFullTime"> Check this if he/she is a full time employee.
</label>
</div>
</div>
<div class=text-right>
<button class="btn btn-default" id="cancel">Cancel</button>
<button class="btn btn-primary" id="dynamicBtn"></button>
</div>
</div>
<table class="table table-striped">
<thead class="thead-inverse">
<tr>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Age</th>
<th scope="col">Gender</th>
<th scope="col">Years of experience</th>
<th scope="col">Full Time</th>
<th scope="col">Edit</th>
<th scope="col">Delete</th>
</tr>
</thead>
<tbody class="tbodyData">
</tbody>
</table>
</div>
</body>
</html>