-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappointment.component.html
More file actions
107 lines (101 loc) · 5.66 KB
/
appointment.component.html
File metadata and controls
107 lines (101 loc) · 5.66 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
<section class="vh-100" style="background-color: #eee;">
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-lg-12 col-xl-11">
<div class="card text-black" style="border-radius: 25px;">
<div class="card-body p-md-5">
<div class="row justify-content-center">
<div class="col-md-10 col-lg-6 col-xl-5 order-2 order-lg-1">
<p class="text-center h1 fw-bold mb-5 mx-1 mx-md-4 mt-4">Schedule Your Appointment</p>
<form [formGroup]="appointmentForm" (ngSubmit)="onSubmitAppointment()">
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-user fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label class="form-label">Name</label>
<input type="text" class="form-control" formControlName="name" name="name" />
</div>
</div>
<!-- For Date of Birth -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-envelope fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label class="form-label" for="dob">DOB:</label>
<input type="date" id="dob" class="form-control" formControlName="dob" name="dob">
</div>
</div>
<!-- For Gender (Radio Buttons) -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-lock fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label class="form-label">Gender</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" formControlName="gender" name="gender"
id="inlineRadio1" value="MALE">
<label class="form-check-label" for="inlineRadio1">Male</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" formControlName="gender" name="gender"
id="inlineRadio2" value="FEMALE">
<label class="form-check-label" for="inlineRadio2">Female</label>
</div>
</div>
</div>
<!-- For Email -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-lock fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label class="form-check-label">Email </label>
<input type="email" class="form-control" formControlName="email" name="email" />
</div>
</div>
<!-- For Department Dropdown -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-lock fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label for="dept" class="form-label">Department:</label><br>
<select select class="custom-select mb-3" (change)="changeDept($event)" name="dept"
class="form-control" id="dept" formControlName="dept" name="dept">
<option *ngFor="let dept of department" value="{{dept.id}}">{{dept.dept_name}}</option>
</select>
</div>
</div>
<!-- !-- For Doctor Dropdown -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-lock fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label for="doc" class="form-label">Doctor:</label><br>
<select class="custom-select mb-3" placeHolderName="Doctors" name="doc" class="form-control"
id="doc" formControlName="doc" name="doc">
<option>Choose Doctor</option>
<option *ngFor="let doc of doctors">{{doc.doc_name}}</option>
</select>
</div>
</div>
<!-- For APpointment datetime picker -->
<div class="d-flex flex-row align-items-center mb-4">
<i class="fas fa-key fa-lg me-3 fa-fw"></i>
<div class="form-outline flex-fill mb-0">
<label class="form-label">Date for Appointment</label>
<input type="datetime-local" id="doa" class="form-control" formControlName="doa" ngModel
name="doa">
</div>
</div>
<!--For Submit button -->
<div class="d-flex justify-content-center mx-4 mb-3 mb-lg-4">
<button type="submit" class="btn btn-primary btn-lg">Book</button>
</div>
</form>
</div>
<!-- Image -->
<div class="col-md-10 col-lg-6 col-xl-7 d-flex align-items-center order-1 order-lg-2">
<img
src="https://st.depositphotos.com/1598598/2023/i/450/depositphotos_20236679-stock-photo-yellow-paper-note-with-text.jpg"
class="img-fluid" alt="Sample image">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>