-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (76 loc) · 2.6 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Contacts</title>
<link rel="stylesheet" href="style.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body>
<header class="container card">
<h1>
<i class="fa fa-fw fa-address-book"></i>
<span>My Contact List</span>
</h1>
<!-- TODO show the new-contact-form when this button is clicked -->
<button class="fab" onclick="toggleAddContactForm()" title="New Contact">
<i class="fa fa-lg fa-plus-circle"></i>
</button>
<hr>
</header>
<main class="container">
<form class="card mt-1 mb-1" id="new-contact-form" class="" onsubmit="addContact(event)">
<div>
<h4 class="mt-1 mb-1">
<i class="fa fa-fw fa-user"></i>
<span>Add Contact</span>
</h4>
</div>
<div>
<label for="name">Name:</label>
<input type="text" name="name">
</div>
<div>
<label for="phonenumber">Phone Number:</label>
<input type="text" name="phoneNumber">
</div>
<div>
<label for="emergency-contact">Emergency Contact:</label>
<input type="checkbox" name="emergencyContact">
</div>
<hr>
<div class="d-flex space-between">
<button type="submit">Submit</button>
<!-- TODO hide this form when this button is clicked -->
<button class="btn-cancel" type="button" onclick="toggleAddContactForm()" >cancel</button>
</div>
</form>
<div class="contacts" id="contact-list">
<!-- TODO Remove these templates and draw them using JavaScript -->
<div class="card mt-1 mb-1">
<h3 class="mt-1 mb-1">Jimmy Tester</h3>
<div class="d-flex space-between">
<p>
<i class="fa fa-fw fa-phone"></i>
<span>(777) 777-7777</span>
</p>
<i class="action fa fa-trash text-danger"></i>
</div>
</div>
<div class="card mt-1 mb-1 emergency-contact">
<h3 class="mt-1 mb-1">Emergency Contact Tester</h3>
<div class="d-flex space-between">
<p>
<i class="fa fa-fw fa-phone"></i>
<span>(777) 777-7777</span>
</p>
<i class="action fa fa-trash text-danger"></i>
</div>
</div>
</div>
</main>
<script src="main.js"></script>
</body>
</html>