-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.html
194 lines (194 loc) · 7.17 KB
/
checkout.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
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
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<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" />
<link
href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css"
rel="stylesheet"
type="text/css"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.rtl.min.css"
integrity="sha384-gXt9imSW0VcJVHezoNQsP+TNrjYXoGcrqBZJpry9zJt8PCQjobwmhMGaDHTASo9N"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./global.css" />
<link rel="stylesheet" href="./ticket.css" />
<script
defer
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"
></script>
<script
defer
src="https://kit.fontawesome.com/2c02c3225a.js"
crossorigin="anonymous"
></script>
<script src="./scripts/utils.js"></script>
<script defer src="./scripts/CheckoutScript.js"></script>
<title>پرداخت</title>
</head>
<body class="checkout-page">
<main class="d-flex flex-column align-items-stretch mx-3">
<div class="card w-100 mb-2 theme-dependant">
<div class="card-body">
<div class="border-bottom d-flex pb-2">
<div class="flight-capacity">
<p>ظرفیت باقی مانده: <span id="capacityField"></span></p>
</div>
</div>
<div class="ticket-container">
<div class="flight-airline" id="airlineField">
<img class="airline-pic" />
<p></p>
</div>
<div class="flight-location">
<div class="flight-time">
<p class="fw-bold text-colored" id="startTime"></p>
<div class="flight-duration pb-1" id="duration"></div>
<p class="fw-bold text-colored" id="finishTime"></p>
</div>
<div class="flight-path">
<div class="date-location">
<p id="startDate"></p>
<p class="text-colored" id="source"></p>
</div>
<div class="date-location">
<p id="finishDate"></p>
<p class="text-colored" id="destination"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<section id="passengerList">
<form id="firstPassengerForm" novalidate>
<div class="form-floating mb-3">
<input
type="text"
class="form-control"
id="passengerName"
placeholder="نام و نام خانوادگی"
name="name"
required
/>
<label for="passengerName">نام و نام خانوادگی</label>
<div class="invalid-feedback">پر کردن این فیلد الزامی است</div>
</div>
<div class="form-floating mb-3">
<input
type="text"
class="form-control"
pattern="[A-Z]\d{8}"
id="passportNo"
name="passportNo"
placeholder="شماره پاسپورت"
required
/>
<label for="passportNo">شماره پاسپورت</label>
<div class="invalid-feedback">
شماره پاسپورت باید شامل یک حرف بزرگ انگلیسی و 8 رقم باشد
</div>
</div>
<button type="submit" class="btn btn-primary">ثبت اطلاعات</button>
</form>
</section>
<section id="extraPassenger" hidden>
<button
id="passengerAdder"
class="btn btn-secondary"
data-bs-toggle="modal"
data-bs-target="#passengerModal"
>
اضافه کردن مسافر
<i class="fa-solid fa-plus"></i>
</button>
<button class="btn btn-primary">تکمیل خرید</button>
<div
class="modal fade"
id="passengerModal"
tabindex="-1"
aria-labelledby="passengerModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content theme-dependant">
<div class="modal-header">
<h1 class="modal-title fs-5" id="passengerModalLabel">
اطلاعات مسافر
</h1>
<button
type="button"
class="btn-close m-0"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<form id="passengerForm" novalidate>
<div class="form-floating mb-3">
<input
type="text"
class="form-control"
id="passengerName"
name="name"
placeholder="نام و نام خانوادگی"
required
/>
<label for="passengerName">نام و نام خانوادگی</label>
<div class="invalid-feedback">
پر کردن این فیلد الزامی است
</div>
</div>
<div class="form-floating mb-3">
<input
type="text"
class="form-control"
pattern="[A-Z]\d{8}"
id="passportNo"
name="passportNo"
placeholder="شماره پاسپورت"
required
/>
<label for="passportNo">شماره پاسپورت</label>
<div class="invalid-feedback">
شماره پاسپورت باید شامل یک حرف بزرگ انگلیسی و 8 رقم باشد
</div>
</div>
<div class="modal-footer justify-content-start">
<button
type="submit"
class="btn btn-primary"
data-bs-dismiss="modal"
>
اضافه کردن مسافر
</button>
<button
type="button"
class="btn btn-danger"
data-bs-dismiss="modal"
data-form-cancel
>
لغو
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</main>
</body>
</html>