-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.ejs
211 lines (168 loc) · 11.7 KB
/
profile.ejs
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
<!DOCTYPE html>
<html>
<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>Clinic Branch</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<link href="https://cdn.lineicons.com/4.0/lineicons.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="<%= cssFile %>">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="wrapper">
<%- include('sidebar') %>
<div class="main">
<nav class="navbar navbar-expand px-4 py-3">
<form action="#" class="d-none d-sm-inline-block">
</form>
<div class="navbar-collapse collapse">
<ul class="navbar-nav ms-auto">
<li class="nav-item dropdown">
<a href="#" data-bs-toggle="dropdown" class="nav-icon pe-md-0">
<img src="account.png" class="avatar img-fluid" alt="">
</a>
<div class="dropdown-menu dropdown-menu-end rounded">
</div>
</li>
</ul>
</div>
</nav>
<main class="content px-6 py-4">
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card p-4" style="border: 1px solid #ccc; border-radius: 10px;">
<div class="card-body">
<h5 class="card-title mb-4 text-center">
<tr>
<td><%= clinics[0].clinic_name %></td>
</tr>
</h5>
<div class="text-center mb-3">
<img src="https://www.entrepreneurs.ng/wp-content/uploads/2019/06/Mark-Zuckerberg.jpg" class="img-fluid rounded-circle" style="width: 150px;">
</div>
<table class="table table-borderless">
<tbody>
<div class="text-center">
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal1">
Edit
</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal2">
Request to change
</button>
</div>
<tr>
<th scope="row">Clinic Address</th>
<td><%= clinics[0].clinic_address %></td>
</tr>
<tr>
<th scope="row">Liscense Code</th>
<td><%= clinics[0].license_code %></td>
</tr>
<tr>
<th scope="row">Contact Information</th>
<td><b>Email:</b> <%= clinics[0].clinic_email %>
<b>Contact #:</b> <%= clinics[0].mobile_number %></td>
</tr>
<tr>
<th scope="row">Status</th>
<td><%= clinics[0].status %></td>
</tr>
</tbody>
</table>
<form id = "editProfile">
<div class="modal" id="myModal1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Are you sure you want to edit?</h4>
<button type="button" class="close" data-bs-dismiss="modal">×</button>
</div>
<div class="modal-body">
<table class="table table-bordered">
<tr>
<th scope="row">Email</th>
<td>
<input type="email" class="form-control" name = 'clinic_email' id="clinicEmail" value="<%= clinics[0].clinic_email %>">
</td>
</tr>
<tr>
<th scope="row">Contact</th>
<td>
<input type="tel" class="form-control" name = 'mobile_number' id="clinicPhone" value="<%= clinics[0].mobile_number %>">
</td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-success" data-bs-dismiss="modal">Save Changes</button>
</div>
</div>
</div>
</div>
</form>
<form method = 'post' action = '/admin/changerequest'>
<div class="modal" id="myModal2">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Request Change</h4>
<button type="button" class="close" data-bs-dismiss="modal">×</button>
</div>
<div class="modal-body">
<table class="table table-bordered">
<tr>
<th scope="row">Address</th>
<td>
<input type="text" class="form-control" name = 'clinic_address' value="<%= clinics[0].clinic_address %>">
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>
<input type="text" class="form-control" name = 'clinic_name' value="<%= clinics[0].clinic_name %>">
</td>
</tr>
<tr>
<th scope="row">License Code</th>
<td>
<input type="text" class="form-control" name = 'license_code' value="<%= clinics[0].license_code %>">
</td>
</tr>
<tr>
<th scope="row">Evidence Files</th>
<td>
<input type="file" class="form-control" name = 'evidence' multiple>
</td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-success" data-bs-dismiss="modal">Save Changes</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script src="../assets/js/style.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src = "/profile.js"></script>
</body>
</html>