-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html
More file actions
333 lines (289 loc) · 15.7 KB
/
profile.html
File metadata and controls
333 lines (289 loc) · 15.7 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" />
<!-- Import fonts awesome stylesheet -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="/styles/index.css">
<link rel="stylesheet" href="/styles/profile.css">
<link rel="stylesheet" href="/styles/navbar.css">
<link rel="stylesheet" href="/styles/footer.css">
<!-- <link rel="stylesheet" href="/styles/profile.css"> -->
</head>
<body>
<!-- toast -->
<!-- https://getbootstrap.com/docs/5.3/components/toasts/ -->
<div class="toast-container p-3 top-0 start-50 translate-middle-x">
<!-- Put toasts within -->
<div id="msg-toast" class="toast align-items-center mt-2" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="true" data-bs-delay="4000">
<div class="d-flex">
<div id="msg-toast-body" class="toast-body ms-auto">
<!-- Message to be added here -->
</div>
<button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
</div>
<!-- start of offcanvas navigation -->
<nav class="navbar navbar-default navbar-expand-sm fixed-top" style="width: 100%">
<div class="container-fluid">
<a class="navbar-brand text-light" href="/index.html"><img src="/img/navbar/rebound1w.png" alt="logo"
style="width: 150px; height: 40px; object-fit: cover" class="rounded-pill" /></a>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Offcanvas Menu -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel"></h5>
<button type="button" class="btn-close btn-close-black" data-bs-dismiss="offcanvas"
aria-label="Close"></button>
</div>
<div class="offcanvas-body bg-dark navbar-dark menu" id="navbarNav">
<div>
<!-- dynamic navbar -->
</div>
</div>
</div>
</div>
</nav>
<!-- end of offcanvasnavigation -->
<!-- start of profile -->
<div class="container-fluid"></div>
<div class="row m-0">
<div class="col-md-4">
<form id="formLogin" class="needs-validation" novalidate>
<div class="container profile-section">
<div id="profileSection">
<h2 id="profileHeader"></h2>
</div>
<!-- insert dynamic -->
<div class="col profile-subsection" id="staff-license">
<!-- for staff license number input from JS -->
</div>
<div class="spinnerProfile" id="spinnerProfile">
<!-- spinner -->
</div>
<!-- edit button -->
<div class="edit-btn-section">
<div id="txtUserrole" class="role">
<p></p>
</div>
<div class="edit-btn">
<button type="submit" id="btnEdit" class="btn btnEdit btn-danger">Edit</button>
</div>
</div>
</div>
</form>
</div>
<div class="col-md-8" id="patientdetail">
<form class="needs-validation" novalidate>
<div class="container profile-section">
<!-- package type -->
<div id="packageType" class="d-flex justify-content-sm-start">
<!-- insert dynamic -->
</div>
<!-- Package Selected -->
<div class="col profile-subsection" id="packageSelectedRow">
<!-- insert dynamic -->
</div>
<!-- insert dynamic -->
<div class="spinnerRegister" id="spinnerRegister">
<!-- spinner -->
</div>
</div>
</form>
</div>
<div class="col-md-8 profile-section staff-section admin-section" id="staff-admin-section">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link fw-bold active" id="patient-tab" data-bs-toggle="tab"
data-bs-target="#patient-tab-pane" type="button" role="tab" aria-controls="patient-tab-pane"
aria-selected="true">Patient</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link fw-bold" id="staff-tab" data-bs-toggle="tab"
data-bs-target="#staff-tab-pane" type="button" role="tab" aria-controls="staff-tab-pane"
aria-selected="false">Nurse</button>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane show active" id="patient-tab-pane" role="tabpanel" aria-labelledby="patient-tab"
tabindex="0">
<div class="table-responsive small rounded-bottom pt-3 px-3 bg-body-secondary staff-section admin-section"
id="patientRecords">
<table class="table table-striped table-sm">
<thead>
<tr>
<th class="ps-3" scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col"></th>
<th scope="col">Status</th>
</tr>
</thead>
<!-- start of dynamic -->
<tbody class="" id="patientRecordstbody">
<!-- dynamic insertion -->
</tbody>
<!-- end of dynamic -->
</table>
</div>
</div>
<div class="tab-pane" id="staff-tab-pane" role="tabpanel" aria-labelledby="staff-tab" tabindex="0">
<div class="table-responsive small rounded-bottom pt-3 px-3 bg-body-secondary admin-section"
id="staffRecords">
<table class="table table-striped table-sm">
<thead>
<tr>
<th class="ps-3" scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col"></th>
<th scope="col">Status</th>
</tr>
</thead>
<!-- start of dynamic -->
<tbody class="" id="staffRecordstbody">
<!-- dynamic insertion -->
</tbody>
<!-- end of dynamic -->
</table>
</div>
</div>
</div>
<div class="modal" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title" id="staticBackdropLabel"><span
class="chooseProfile">p/s</span><span> ID: </span><span class="profileID"></span>
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Patient Modal Sample -->
<div class="modal-body">
<div class="modal-first-row row">
<!-- Below commented code is what the js script produces -->
<!-- <div class="col-4 ">
<p class="header-titles d-block mb-0 fw-bold"> Name</p>
<p class="profileName d-block ">kai</p>
</div>
<div class="col-4">
<p class="header-titles d-block mb-0 fw-bold">Registration Date</p>
<input id="startDate" class="form-control" type="date" />
</div>
<div class="col-4">
<p class="header-titles d-block mb-0 fw-bold">Package</p>
<p class="d-block">half-day</p>
</div> -->
</div>
<div class="modal-second-row row">
<!-- <div class="col-4 ">
<p class="header-titles d-block mb-0 fw-bold"> Name</p>
<p class="profileName d-block ">kai</p>
</div>
<div class="col-4">
<p class="header-titles d-block mb-0 fw-bold">Registration Date</p>
<p class="profileRegistrationDate d-block">24th Sep 2024</p>
</div>
<div class="col-4">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
Dropdown button
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</div>
</div> -->
</div>
<div class="modal-third-row">
<!-- <label for="additional-notes" class="header-titles d-block fw-bold">Additional Notes:
</label>
<textarea class="form-control" rows="3" id="additional-notes"></textarea> -->
</div>
<div class="modal-fourth-row">
</div>
</div>
<div class="modal-footer">
<button type="button" id="btnSave" class="btn btn-primary save-button" data-bs-dismiss="modal">Save</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end of profile -->
<!-- start of footer -->
<footer class="col footer-section">
<div class="row py-3 pt-4 footer-top-section m-0">
<div class="row">
<div class="col-md-3 footer-image-section">
<img src="/img/footer/rebound1.png" alt="logo" style="width: 150px; height: 40px; object-fit: cover"
class="rounded-pill" />
<p class="footer-description-section">We a VIP Concierge Nursing Care company. Our vision is to
empower at-home patients to gain independence and quality lifestyle.
</p>
</div>
<div class="col-md-1">
<!-- empty column -->
</div>
<div class="col-md-4 social-media-icon justify-content-center align-content-center text-center">
<img src="/img/footer/instagram_icon.webp" alt="instagram">
<img src="/img/footer/fb_icon.webp" alt="facebook">
<img src="/img/footer/youtube_icon.webp" alt="youtube">
<img src="/img/footer/titok_icon.webp" alt="titok">
</div>
<div class="col-md-4 footer-contact-section">
<p>Contact</p>
<a href="#"><img src="/img/footer/phone_icon.png" alt="phone"><span>+(65) 6877 7788</span></a>
<a href="#"><img src="/img/footer/message_icon.png" alt="message"><span>Info@rebound.com</span></a>
<a href="#"><img src="/img/footer/location_icon.png" alt="location"><span>111 Vitality St. Singapore
877111</span></a>
</div>
</div>
</div>
<div class="row footer-bottom-section m-0">
<p>© 2024 REBOUND</p>
</div>
</footer>
<!-- end of footer -->
<!-- External Custom Script -->
<script src="/scripts/Mock.js"></script> <!-- TODO: to remove in production env. -->
<script src="/scripts/const.js"></script>
<script src="/scripts/auth.js"></script>
<script src="/scripts/components/NavController.js"></script>
<script src="/scripts/components/Spinner.js"></script>
<script src="/scripts/loader.js"></script>
<script src="/scripts/profileFormData.js"></script>
<script src="/scripts/apiservice.js"></script>
<script src="/scripts/profiledetails.js"></script>
<script src="/scripts/boostrap-ftns.js"></script>
<script src="/scripts/form-validate.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
</script>
<!-- Internal Custom Script -->
<script>
// get the toast elements as objects
const toastElement = document.getElementById("msg-toast");
const toastBodyElement = document.getElementById("msg-toast-body");
function ftnUpdatedMessge() {
showToast({toastElement, toastBodyElement, bgColor: "success", msg: "Profile Updated."});
}
</script>
</body>
</html>