-
Notifications
You must be signed in to change notification settings - Fork 0
/
employees-page.html
189 lines (182 loc) · 9.55 KB
/
employees-page.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Dashboard</title>
</head>
<body>
<!--NAV-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Hi,Rey</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-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="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="employees-page.html">Employees</a>
</li>
<li class="nav-item">
<a class="nav-link" href="job-page.html">Jobs</a>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
<a href="index.html" class="btn btn-warning ms-3">Log Out</a>
</div>
</div>
</nav>
<!--NAV-->
<!--DASHBOARD CONTENT-->
<div class="container-fluid">
<div class="row mt-3">
<div class="col-md-3">
<ul class="list-group">
<li class="list-group-item active">Employee Data</li>
<li class="list-group-item" data-bs-toggle="modal" data-bs-target="#add_employees">Add Employee</li>
<li class="list-group-item">View All Employees</li>
</ul>
</div>
<div class="col-md-9">
<table class="table table-striped table-hover bg-light">
<tr class="table-dark">
<th>ID</th>
<th>Name</th>
<th>Email ID</th>
<th>Details</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<tr>
<td>1</td>
<td>John Doe</td>
<td>johndoe@gmail.com</td>
<td><button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#detail_employees">Detail</button></td>
<td><button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#edit_employees">Edit</button></td>
<td><button class="btn btn-danger" onclick="confirm('Are you sure want to delete \'John Doe\'')">Delete</button></td>
</tr>
<tr>
<td>2</td>
<td>John Doe</td>
<td>johndoe@gmail.com</td>
<td><button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#detail_employees">Detail</button></td>
<td><button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#edit_employees">Edit</button></td>
<td><button class="btn btn-danger" onclick="confirm('Are you sure want to delete \'John Doe\'')">Delete</button></td>
</tr>
<tr>
<td>3</td>
<td>John Doe</td>
<td>johndoe@gmail.com</td>
<td><button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#detail_employees">Detail</button></td>
<td><button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#edit_employees">Edit</button></td>
<td><button class="btn btn-danger" onclick="confirm('Are you sure want to delete \'John Doe\'')">Delete</button></td>
</tr>
<tr>
<td>4</td>
<td>John Doe</td>
<td>johndoe@gmail.com</td>
<td><button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#detail_employees">Detail</button></td>
<td><button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#edit_employees">Edit</button></td>
<td><button class="btn btn-danger" onclick="confirm('Are you sure want to delete \'John Doe\'')">Delete</button></td>
</tr>
</table>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="add_employees" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add Employees Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="date" name="employees_add_date" class="form-control tanggal mb-3">
<input type="text" name="employees_add_name" class="form-control mb-3" placeholder="Employee Name">
<input type="text" name="employees_add_email" class="form-control mb-3" placeholder="Employee Email ID">
<input type="tel" name="employees_add_tel" class="form-control mb-3" placeholder="Employee Phone Number">
<input type="text" name="employees_add_job" class="form-control mb-3" placeholder="Employee Job">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success login">Add New Employee</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="detail_employees" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Employee Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<table class="table table-bordered">
<tr>
<th>ID</th>
<td>1</td>
</tr>
<tr>
<th>Joining Date</th>
<td>29 July 2020</td>
</tr>
<tr>
<th>Name</th>
<td>John Doe</td>
</tr>
<tr>
<th>Email ID</th>
<td>johndoe@gmail.com</td>
</tr>
<tr>
<th>Phone</th>
<td>+6229489589685</td>
</tr>
<tr>
<th>Job</th>
<td>Graphic Designer</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="modal fade" id="edit_employees" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Edit Employees Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="date" name="employees_add_date" class="form-control mb-3" value="29/07/2021">
<input type="text" name="employees_add_name" class="form-control mb-3" placeholder="Employee Name" value="John Doe">
<input type="text" name="employees_add_email" class="form-control mb-3" placeholder="Employee Email ID" value="johndoe@gmail.com">
<input type="tel" name="employees_add_tel" class="form-control mb-3" placeholder="Employee Phone Number" value="+6229489589685">
<input type="text" name="employees_add_job" class="form-control mb-3" placeholder="Employee Job" value="Graphic Designer">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success login">Edit Employee Detail</button>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
-->
</body>
</html>