-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.html
153 lines (134 loc) · 6.48 KB
/
update.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
<!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" />
<title>Profile Update || TasteNest</title>
<!-- normalize -->
<link rel="stylesheet" href="./css/normalize.css" />
<!-- font-awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
/>
<!-- Dashboard -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- main css -->
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/profile.css" />
</head>
<body>
<!-- nav -->
<nav class="navbar">
<div class="nav-center">
<div class="nav-header">
<a href="index.html" class="nav-logo">
<img src="./assets/logo.png" alt="simply recipes" height="30px" width="80px" style="margin-top: -5px;"/>
</a>
<button class="nav-btn btn">
<i class="fas fa-align-justify"></i>
</button>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link"> home </a>
<a href="about.html" class="nav-link"> about </a>
<a href="recipes.html" class="nav-link"> recipes </a>
<a href="events.html" class="nav-link"> events </a>
<div class="nav-link contact-link">
<a id="loginLink" href="login.html" class="btn"> login </a>
<a id="profileLink" href="profile.html" class="btn"> profile </a>
</div>
</div>
</div>
</nav>
<!-- end of nav -->
<main class="page">
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-3 ">
<div class="list-group ">
<a href="./profile.html" class="list-group-item list-group-item-action">Dashboard</a>
<a href="./update.html" class="list-group-item list-group-item-action active">Update Info</a>
<a href="./profile-recipe.html" class="list-group-item list-group-item-action">Recipe Managment</a>
<a href="./add-recipe.html" class="list-group-item list-group-item-action">Post Recipe</a>
<a href="./profile-event.html" class="list-group-item list-group-item-action">Event Managment</a>
<a href="./add-event.html" class="list-group-item list-group-item-action">Post Event</a>
<a href="#" onclick="handleLogout()" class="list-group-item list-group-item-action">Logout</a>
</div>
</div>
<div class="col-md-9">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<h4>Update Profile</h4>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form>
<div class="form-group row">
<label for="name" class="col-4 col-form-label">First Name</label>
<div class="col-8">
<input id="update-firstname" name="name" placeholder="First Name" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="lastname" class="col-4 col-form-label">Last Name</label>
<div class="col-8">
<input id="update-lastname" name="lastname" placeholder="Last Name" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="mobile" class="col-4 col-form-label">Mobile</label>
<div class="col-8">
<input id="update-mobile" name="mobile" placeholder="Mobile" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="image" class="col-4 col-form-label">Image</label>
<div class="col-8">
<input id="update-profile-image" name="image" placeholder="" class="form-control here" type="file">
</div>
</div>
<div class="form-group row">
<label for="address" class="col-4 col-form-label">Address</label>
<div class="col-8">
<input id="update-address" name="address" placeholder="Address" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<div class="offset-4 col-8">
<button onclick="handleProfileUpdate()" name="submit" type="submit" class="btn btn-primary">Update</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- footer -->
<footer class="page-footer">
<p>
© <span id="date"></span>
<span class="footer-logo">TasteNest</span>
Customized by
<a href="https://www.linkedin.com/in/mohammad-elias/">Elias</a>
</p>
</footer>
<script src="./js/app.js"></script>
<script src="./js/is_logged.js"></script>
<script src="./js/jwt.js"></script>
<script src="./js/profile.js"></script>
<script src="./js/auth.js"></script>
</body>
</html>