-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheditContact.html
126 lines (100 loc) · 5.29 KB
/
editContact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="js/md5.js"></script>
<script type="text/javascript" src="js/code.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link href="css/styles.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon/favicon-16x16.png">
<link rel="manifest" href="/images/favicon/site.webmanifest">
<link rel="mask-icon" href="/images/favicon/safari-pinned-tab.svg" color="#848484">
<link rel="shortcut icon" href="/images/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/images/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Edit Contact</title>
<style>
[class*="col-"] {
padding: 1rem;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark sticky-top">
<div class="container-fluid d-flex d-justify-content-center">
<a class="navbar-brand" href="/homepage.html"><img src="images/icon.png" alt="" width="75" height="75"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="/homepage.html"><i class="fas fa-home"></i> Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/addcontacts.html"><i class="fas fa-plus-circle"></i> Add</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="doLogout()"><i class="fas fa-sign-out-alt"></i> Signout</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<br>
<h2>Edit Contact</h2>
<br>
<p>Please adjust the contact's information below</p><br>
<h4>Contact Information</h4>
<form class="row needs-validation" onsubmit="doEditContact(); return false" novalidate>
<div class="col-6">
<label for="inputEmail4" class="form-label">First Name:</label>
<input id="input-firstname" type="text" class="form-control" placeholder="John" aria-label="First name" required>
<div class="invalid-feedback">Contacts must have a first name</div>
</div>
<div class="col-6">
<label class="form-label">Last Name:</label>
<input id="input-lastname" type="text" class="form-control" placeholder="Doe" aria-label="Last name" required>
<div class="invalid-feedback">Contacts must have a last name</div>
</div>
<div class="col-12">
<label class="form-label">E-mail Address:</label>
<input id="input-email" type="email" placeholder="[email protected]" name="email" class="form-control">
</div>
<div class="col-12">
<label class="form-label">Phone Number:</label>
<input id="input-phone" type="tel" placeholder="(407)-123-4567" name="phone" class="form-control">
</div>
<div class="col-12">
<label class="form-label">Address:</label>
<input id="input-address" type="text" placeholder="42 Wallaby Way" name="phone" class="form-control">
</div>
<div class="col-12 d-flex flex-row justify-content-between">
<button class="btn btn-secondary" onclick="location.href='/homepage.html'">Cancel</button></a>
<p id="delete-error" class="text-danger"></p>
<button class="btn btn-primary" type="submit">Update</button>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/releases/v5.15.3/js/all.js"></script>
<script>
doGetContactForUpdate();
bindForms();
</script>
</body>
</html>