-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontacts.html
More file actions
275 lines (275 loc) · 14.6 KB
/
contacts.html
File metadata and controls
275 lines (275 loc) · 14.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="./asset/css/contacts.css" />
<title>Contacts</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg bg-dark">
<a class="navbar-brand" href="#">
<img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIEAAACBCAMAAADQfiliAAAAY1BMVEX///8AAADY2Nj7+/seHh5GRkbn5+dCQkJ6enru7u5ycnL39/fq6ur09PS9vb1oaGguLi6tra3S0tI5OTne3t4kJCTGxsZRUVGXl5cMDAxiYmKOjo5XV1eGhoajo6MzMzMYGBhxhxysAAAGfklEQVR4nO1b24KiMAxVroJauQsq6v9/5Y4z27SlSVOQ2Zf1vCLtIU1OkzZuNh988MEHH3ywArKgE2V/Hcfx2peiCw7/dvLylBbPrY6hSC/36p/QyMq82FJoT/dfJnEsz+TsEvE9+7X5q5yd/geX7nfmv3nO/8JZhKvPf5kx/zeHde1w8LW/jkuzHoE7NcnQFo+ifVKPr/t15k8Q/x/Sy1U0ySF74ZA0oj/Fkf2zOliDgBisgXMRII7WiJ390/v7BHbTMUeXi1XXKYnLmyuRxeZ4cckNGIrJokXJOwSahzm/8PmgsDOV41ktJxCYXi68X+xa48XF0hAYw1xnqZwZwP7caQLp3LhKjKVYZIVG9+rdApnvdQoLfCHTnbCc//7GVJJhfkSkmjMvVbZE+4rncebLmhAVywN6r33Hbd6rQvPBdxTlqMlTP+dFzQvfsMALuhXmeKPSYlRTs+YrUy/7cffC9V6KgNbKUPlC6+8KWhyZTrivRJ8/2sjaA6N67IgENVPCuvMlkJBhGExn1vHIK1Q1uvnrcCJJOxlsqeRQmTT2I1CpF6bfxDH4ijnMb9QneUlbqATdSjV5BtsI2YUyeFr7OKNatqv1TGMwRFH7Dcstke8sZxkBTDDYzySDp6iCv2lqlgRdORqlJGKFGozAb3GdayDJILKeHO9aPme7fOUadQLwmjPyEBggXxIKSIxSx7A1R0A5DRZYLgZfWg4KbH+o8iBuowWfOWOTuBlsEmmFwn4GRrD92wSsJrpeDAPlRLYqgBEQB9dxAGOhc3AMNtIISNDBErmlGVLcEX3MMpACjJiaGVoCVgtPblkGMrNBdkHY786usucgrUgsFstA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l8VdqPtQFUb/JcRmFhhe/P3pUlX6UILvCCMgYbRryvm0Jvtmm91SVZbk8OO55CNk3bRhW1xEofaHG57c/dIitPk94sbugDhuJ3iUmJtqq9GVbupOJ/bDIZB2N3AQ5zfqyQ7/hAJ91kSlDnWrLtCo+wLCdGvXcSX0+tA8XImuvnj9XqmRYtP4cSwrKeQQj+XwzCu3TufzeIQeUrHTA53xNVw9L8x/zc6q4MbQf6mBDHYi91Uo3QUebmGADDIgvsttRfkWd/66vf+wmKh6US/u6WPNmof6W3Xi65Z/X8jH3zwwQcf/I/4A2dhRlCCkhfPAAAAAElFTkSuQmCC"
alt=""
width="30"
height="30"
class="d-inline-block align-top rounded-circle"
/>
Contact Manager</a
>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse nav justify-content-end" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">
<i class="bi bi-person-lines-fill"></i>Contacts</a
>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
username
href="#"
id="navbarDarkDropdownMenuLink"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
<i class="bi bi-person-circle"></i>
</a>
<ul
class="dropdown-menu dropdown-menu-dark"
aria-labelledby="navbarDarkDropdownMenuLink"
>
<li>
<a class="dropdown-item" href="#"
><i class="bi bi-gear-fill"></i>Acount</a
>
</li>
<li>
<a class="dropdown-item" href="#" id="logout">
<i class="bi bi-escape"></i>Logout</a
>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<main>
<section>
<div class="top mb-3">
<h2>Contacts</h2>
<button
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#addContactsModal"
>
<i class="bi bi-person-plus-fill"></i>
Add contact
</button>
</div>
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Phone</th>
<th scope="col">Email</th>
<th scope="col">Action</th>
</tr>
</thead>
</table>
</section>
<!-- modal -->
<div
class="modal fade"
id="addContactsModal"
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 Contact</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<form id="add-contact-form">
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label"
>Contact Name</label
>
<input
type="text"
class="form-control"
name="contactName"
placeholder="Contact Name"
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label"
>Phone No.</label
>
<input
type="number"
class="form-control"
name="phoneNo"
placeholder="Phone No."
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label"
>Email</label
>
<input
type="email"
class="form-control"
placeholder="Email"
name="email"
aria-describedby="emailHelp"
/>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Close
</button>
<button
type="submit"
class="btn btn-primary"
form="add-contact-form"
data-bs-dismiss="modal"
>
Save
</button>
</div>
</div>
</div>
</div>
<div
class="modal fade"
id="editContactForm"
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 Contact</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<form id="edit-contact-form">
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label"
>Contact Name</label
>
<input
type="text"
class="form-control"
name="contactName"
id="edit-contact"
placeholder="Contact Name"
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label"
>Phone No.</label
>
<input
type="number"
class="form-control"
name="phoneNo"
id="edit-phoneNo"
placeholder="Phone No."
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label"
>Email</label
>
<input
type="email"
class="form-control"
placeholder="Email"
name="email"
id="edit-email"
aria-describedby="emailHelp"
/>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Close
</button>
<button
id="save-edit-form"
type="submit"
class="btn btn-primary"
form="edit-contact-form"
data-bs-dismiss="modal"
>
Save
</button>
</div>
</div>
</div>
</div>
</main>
<script src="./asset/javascript/contacts.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"
></script>
</body>
</html>