-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Address Book</title>
<link rel="stylesheet" href="css/style.css"/>
<script src="js/main.js"></script>
<script src="js/sort.js"></script>
<script src="js/filters.js"></script>
<script src="js/formValidation.js"></script>
</head>
<body>
<form id="fullNameFilterForm">
<label>
<input type="text" name="fullNameFilter" placeholder="Full Name"/>
</label>
<label>
<input type="submit" name="filter" value="Filter"/>
</label>
</form>
<table id="mainTable">
<thead>
<tr>
<th id="sortByPhone">Phone</th>
<th id="sortByFullName">Full Name</th>
<th id="sortByEmail">Email</th>
<th id="sortByAddress">Address</th>
<th>Operation</th>
</tr>
</thead>
<tbody id="recordsList"></tbody>
</table>
<button id="showAddOrEditRecordForm">Add new record</button>
<form id="addOrEditRecordForm">
<div>
<label>
<input type="text" name="phone" placeholder="Phone"/>
</label>
<label>
<input type="text" name="fullName" placeholder="Full Name"/>
</label>
<label>
<input type="text" name="email" placeholder="Email"/>
</label>
<label>
<input type="text" name="address" placeholder="Address"/>
</label>
</div>
<div>
<input type="submit" value="Add new record (or Save)"/>
</div>
</form>
</body>
</html>