Spaces:
Runtime error
Runtime error
Update templates/combined_summary.html
Browse files- templates/combined_summary.html +247 -1052
templates/combined_summary.html
CHANGED
|
@@ -1,1071 +1,266 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 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 |
-
display: flex;
|
| 180 |
-
flex-direction: column;
|
| 181 |
-
align-items: center;
|
| 182 |
-
margin: 0 auto;
|
| 183 |
-
flex-shrink: 0;
|
| 184 |
-
background: #FFF7ED;
|
| 185 |
-
border-radius: 8px;
|
| 186 |
-
padding: 8px;
|
| 187 |
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
| 188 |
-
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
| 189 |
-
}
|
| 190 |
-
.sector-item:hover {
|
| 191 |
-
transform: translateY(-2px);
|
| 192 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 193 |
-
}
|
| 194 |
-
.sector-image {
|
| 195 |
-
max-width: 150px;
|
| 196 |
-
max-height: 100px;
|
| 197 |
-
width: auto;
|
| 198 |
-
height: auto;
|
| 199 |
-
aspect-ratio: 3/2;
|
| 200 |
-
object-fit: contain;
|
| 201 |
-
cursor: pointer;
|
| 202 |
-
border-radius: 8px;
|
| 203 |
-
border: 1px solid #D1D5DB;
|
| 204 |
-
box-sizing: border-box;
|
| 205 |
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 206 |
-
transition: transform 0.15s ease-in-out;
|
| 207 |
-
will-change: transform;
|
| 208 |
-
}
|
| 209 |
-
.sector-image:hover {
|
| 210 |
-
transform: scale(1.08);
|
| 211 |
-
}
|
| 212 |
-
.sector-name {
|
| 213 |
-
text-align: center;
|
| 214 |
-
font-size: 0.75rem;
|
| 215 |
-
font-weight: 600;
|
| 216 |
-
margin-top: 6px;
|
| 217 |
-
max-width: 150px;
|
| 218 |
-
color: #1F2937;
|
| 219 |
-
}
|
| 220 |
-
/* Scroll buttons */
|
| 221 |
-
.scroll-button {
|
| 222 |
-
position: absolute;
|
| 223 |
-
top: 50%;
|
| 224 |
-
transform: translateY(-50%);
|
| 225 |
-
background: #FFB347;
|
| 226 |
-
color: #FFFFFF;
|
| 227 |
-
width: 40px;
|
| 228 |
-
height: 40px;
|
| 229 |
-
border-radius: 50%;
|
| 230 |
-
display: flex;
|
| 231 |
-
align-items: center;
|
| 232 |
-
justify-content: center;
|
| 233 |
-
font-size: 20px;
|
| 234 |
-
cursor: pointer;
|
| 235 |
-
opacity: 0;
|
| 236 |
-
transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
|
| 237 |
-
z-index: 10;
|
| 238 |
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 239 |
-
}
|
| 240 |
-
.scroll-button:hover {
|
| 241 |
-
background: #FF9E2C;
|
| 242 |
-
transform: translateY(-50%) scale(1.1);
|
| 243 |
-
}
|
| 244 |
-
.sector-images-container:hover .scroll-button {
|
| 245 |
-
opacity: 1;
|
| 246 |
-
}
|
| 247 |
-
.scroll-button.left {
|
| 248 |
-
left: 0;
|
| 249 |
-
}
|
| 250 |
-
.scroll-button.right {
|
| 251 |
-
right: 0;
|
| 252 |
-
}
|
| 253 |
-
/* Full-width gradient header */
|
| 254 |
-
.back-to-menu {
|
| 255 |
-
position: fixed;
|
| 256 |
-
top: 0;
|
| 257 |
-
left: 0;
|
| 258 |
-
right: 0;
|
| 259 |
-
display: flex;
|
| 260 |
-
align-items: center;
|
| 261 |
-
padding: 14px 24px;
|
| 262 |
-
background: linear-gradient(45deg, #FFA07A, #FFB347);
|
| 263 |
-
color: #FFFFFF;
|
| 264 |
-
font-size: 1.125rem;
|
| 265 |
-
font-weight: 600;
|
| 266 |
-
text-decoration: none;
|
| 267 |
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
| 268 |
-
z-index: 9999;
|
| 269 |
-
transition: background-color 0.3s ease, transform 0.2s ease;
|
| 270 |
-
}
|
| 271 |
-
.back-to-menu:hover {
|
| 272 |
-
background: linear-gradient(45deg, #FF8C61, #FF9E2C);
|
| 273 |
-
transform: translateY(-1px);
|
| 274 |
-
}
|
| 275 |
-
/* Content spacing */
|
| 276 |
-
.container {
|
| 277 |
-
margin-top: 90px;
|
| 278 |
-
max-width: 100%;
|
| 279 |
-
padding: 20px;
|
| 280 |
-
}
|
| 281 |
-
/* Sector popup */
|
| 282 |
-
#sector-popup {
|
| 283 |
-
display: none;
|
| 284 |
-
position: fixed;
|
| 285 |
-
inset: 0;
|
| 286 |
-
background: rgba(17, 24, 39, 0.6);
|
| 287 |
-
justify-content: center;
|
| 288 |
-
align-items: center;
|
| 289 |
-
z-index: 10000;
|
| 290 |
-
animation: fadeIn 0.3s ease-in-out;
|
| 291 |
-
}
|
| 292 |
-
#popup-content {
|
| 293 |
-
background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
|
| 294 |
-
padding: 24px;
|
| 295 |
-
border-radius: 12px;
|
| 296 |
-
width: 90%;
|
| 297 |
-
max-width: 550px;
|
| 298 |
-
max-height: 85vh;
|
| 299 |
-
overflow-y: auto;
|
| 300 |
-
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
| 301 |
-
border: 1px solid #E5E7EB;
|
| 302 |
-
position: relative;
|
| 303 |
-
contain: layout;
|
| 304 |
-
}
|
| 305 |
-
.popup-header {
|
| 306 |
-
position: relative;
|
| 307 |
-
padding-bottom: 12px;
|
| 308 |
-
margin-bottom: 16px;
|
| 309 |
-
border-bottom: 2px solid #FFB347;
|
| 310 |
-
display: flex;
|
| 311 |
-
justify-content: space-between;
|
| 312 |
-
align-items: center;
|
| 313 |
-
}
|
| 314 |
-
.popup-close {
|
| 315 |
-
background: #FFB347;
|
| 316 |
-
color: #FFFFFF;
|
| 317 |
-
border-radius: 50%;
|
| 318 |
-
width: 40px;
|
| 319 |
-
height: 40px;
|
| 320 |
-
display: flex;
|
| 321 |
-
align-items: center;
|
| 322 |
-
justify-content: center;
|
| 323 |
-
font-size: 24px;
|
| 324 |
-
font-weight: bold;
|
| 325 |
-
border: none;
|
| 326 |
-
cursor: pointer;
|
| 327 |
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 328 |
-
line-height: 1;
|
| 329 |
-
padding: 0;
|
| 330 |
-
position: relative;
|
| 331 |
-
overflow: hidden;
|
| 332 |
-
will-change: transform, background;
|
| 333 |
-
}
|
| 334 |
-
.popup-close::before {
|
| 335 |
-
content: '';
|
| 336 |
-
position: absolute;
|
| 337 |
-
top: 100%;
|
| 338 |
-
left: 0;
|
| 339 |
-
width: 100%;
|
| 340 |
-
height: 100%;
|
| 341 |
-
background: linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
|
| 342 |
-
animation: lightMoveUp 1.5s infinite linear;
|
| 343 |
-
z-index: 0;
|
| 344 |
-
}
|
| 345 |
-
.popup-close:hover {
|
| 346 |
-
background: #FF9E2C;
|
| 347 |
-
transform: scale(1.1);
|
| 348 |
-
}
|
| 349 |
-
.popup-close span {
|
| 350 |
-
position: relative;
|
| 351 |
-
z-index: 1;
|
| 352 |
-
}
|
| 353 |
-
/* Ingredient modal */
|
| 354 |
-
.ingredient-modal-container {
|
| 355 |
-
display: none;
|
| 356 |
-
position: fixed;
|
| 357 |
-
inset: 0;
|
| 358 |
-
background: rgba(0, 0, 0, 0.6);
|
| 359 |
-
justify-content: center;
|
| 360 |
-
align-items: center;
|
| 361 |
-
z-index: 10000;
|
| 362 |
-
animation: fadeIn 0.3s ease-in-out;
|
| 363 |
-
}
|
| 364 |
-
.ingredient-modal {
|
| 365 |
-
background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
|
| 366 |
-
border-radius: 12px;
|
| 367 |
-
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
| 368 |
-
border: 1px solid #E5E7EB;
|
| 369 |
-
width: 90%;
|
| 370 |
-
max-width: 500px;
|
| 371 |
-
max-height: 90vh;
|
| 372 |
-
overflow-y: auto;
|
| 373 |
-
position: relative;
|
| 374 |
-
contain: layout;
|
| 375 |
-
}
|
| 376 |
-
.modal-section {
|
| 377 |
-
padding: 16px;
|
| 378 |
-
border-left: 4px solid #2DD4BF;
|
| 379 |
-
margin-bottom: 16px;
|
| 380 |
-
background: #F9FAFB;
|
| 381 |
-
border-radius: 6px;
|
| 382 |
-
}
|
| 383 |
-
/* Ingredient images */
|
| 384 |
-
.ingredient-image {
|
| 385 |
-
max-width: 100%;
|
| 386 |
-
max-height: 100px;
|
| 387 |
-
width: 100%;
|
| 388 |
-
height: 100px;
|
| 389 |
-
aspect-ratio: 1/1;
|
| 390 |
-
object-fit: cover;
|
| 391 |
-
border-radius: 6px;
|
| 392 |
-
border: 1px solid #D1D5DB;
|
| 393 |
-
transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
|
| 394 |
-
}
|
| 395 |
-
/* Hover effect for ingredient buttons */
|
| 396 |
-
.ingredient-button:hover .ingredient-image {
|
| 397 |
-
transform: scale(1.1);
|
| 398 |
-
border-color: #10B981;
|
| 399 |
-
}
|
| 400 |
-
/* Green border when section is visible */
|
| 401 |
-
.ingredients выполнение-section:not(.hidden) .ingredient-image {
|
| 402 |
-
border: 2px solid #10B981;
|
| 403 |
-
}
|
| 404 |
-
/* Ensure ingredient section is smooth */
|
| 405 |
-
.ingredients-section {
|
| 406 |
-
transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
|
| 407 |
-
max-height: 0;
|
| 408 |
-
opacity: 0;
|
| 409 |
-
overflow: hidden;
|
| 410 |
-
}
|
| 411 |
-
.ingredients-section:not(.hidden) {
|
| 412 |
-
max-height: 1000px;
|
| 413 |
-
opacity: 1;
|
| 414 |
-
}
|
| 415 |
-
/* Prevent body scroll when modal is open */
|
| 416 |
-
body.modal-open {
|
| 417 |
-
overflow: hidden;
|
| 418 |
-
}
|
| 419 |
-
/* Fallback messages */
|
| 420 |
-
.no-data {
|
| 421 |
-
text-align: center;
|
| 422 |
-
color: #6B7280;
|
| 423 |
-
font-size: 1.125rem;
|
| 424 |
-
padding: 20px;
|
| 425 |
-
background: #F9FAFB;
|
| 426 |
-
border-radius: 8px;
|
| 427 |
-
margin-bottom: 20px;
|
| 428 |
-
}
|
| 429 |
-
/* Order confirmed section */
|
| 430 |
-
.order-confirmed {
|
| 431 |
-
background: linear-gradient(135deg, #FFF7ED 0%, #FFE4D6 100%);
|
| 432 |
-
position: relative;
|
| 433 |
-
overflow: hidden;
|
| 434 |
-
}
|
| 435 |
-
.order-confirmed::before {
|
| 436 |
-
content: '✔';
|
| 437 |
-
position: absolute;
|
| 438 |
-
top: 50%;
|
| 439 |
-
left: 50%;
|
| 440 |
-
transform: translate(-50%, -50%);
|
| 441 |
-
font-size: 120px;
|
| 442 |
-
color: rgba(16, 185, 129, 0.1);
|
| 443 |
-
z-index: 0;
|
| 444 |
-
}
|
| 445 |
-
.order-confirmed h1 {
|
| 446 |
-
font-size: 2.25rem;
|
| 447 |
-
z-index: 1;
|
| 448 |
-
position: relative;
|
| 449 |
-
}
|
| 450 |
-
/* Tier details animation */
|
| 451 |
-
.tier-details {
|
| 452 |
-
overflow: hidden;
|
| 453 |
-
transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
|
| 454 |
-
max-height: 0;
|
| 455 |
-
opacity: 0;
|
| 456 |
-
}
|
| 457 |
-
.tier-details:not(.hidden) {
|
| 458 |
-
max-height: 1000px;
|
| 459 |
-
opacity: 1;
|
| 460 |
-
animation: slideDown 0.5s ease-in-out;
|
| 461 |
-
}
|
| 462 |
-
/* Price badge */
|
| 463 |
-
.price-badge {
|
| 464 |
-
display: inline-block;
|
| 465 |
-
background: #FFE4D6;
|
| 466 |
-
padding: 6px 14px;
|
| 467 |
-
border-radius: 14px;
|
| 468 |
-
font-weight: 600;
|
| 469 |
-
color: #C2410C;
|
| 470 |
-
}
|
| 471 |
-
/* Show Ingredients button focus style */
|
| 472 |
-
.ingredients-toggle-button:focus {
|
| 473 |
-
outline: none;
|
| 474 |
-
transform: scale(1.05);
|
| 475 |
-
}
|
| 476 |
-
/* Responsive adjustments */
|
| 477 |
-
@media (max-width: 768px) {
|
| 478 |
-
.custom-class {
|
| 479 |
-
padding: 20px !important;
|
| 480 |
-
max-width: 400px;
|
| 481 |
-
}
|
| 482 |
-
.order-image {
|
| 483 |
-
max-height: 270px;
|
| 484 |
-
}
|
| 485 |
-
.order-item-name {
|
| 486 |
-
font-size: 1.25rem;
|
| 487 |
-
padding: 6px 12px;
|
| 488 |
-
}
|
| 489 |
-
.grid {
|
| 490 |
-
grid-template-columns: repeat(2, 1fr);
|
| 491 |
-
}
|
| 492 |
-
}
|
| 493 |
-
@media (max-width: 480px) {
|
| 494 |
-
.custom-class {
|
| 495 |
-
max-width: 336px;
|
| 496 |
-
}
|
| 497 |
-
.order-image {
|
| 498 |
-
max-height: 225px;
|
| 499 |
-
}
|
| 500 |
-
.order-item-name {
|
| 501 |
-
font-size: 1.125rem;
|
| 502 |
-
}
|
| 503 |
-
}
|
| 504 |
-
@media (max-width: 360px) {
|
| 505 |
-
.custom-class {
|
| 506 |
-
max-width: 296px;
|
| 507 |
-
}
|
| 508 |
-
.order-image {
|
| 509 |
-
max-height: 195px;
|
| 510 |
-
}
|
| 511 |
-
.order-item-name {
|
| 512 |
-
font-size: 1rem;
|
| 513 |
-
padding: 4px 10px;
|
| 514 |
-
}
|
| 515 |
-
}
|
| 516 |
-
@media (max-width: 640px) {
|
| 517 |
-
.back-to-menu {
|
| 518 |
-
padding: 12px 16px;
|
| 519 |
-
font-size: 1rem;
|
| 520 |
-
}
|
| 521 |
-
.container {
|
| 522 |
-
margin-top: 70px;
|
| 523 |
-
padding: 16px;
|
| 524 |
-
}
|
| 525 |
-
.history {
|
| 526 |
-
font-size: 1.5rem;
|
| 527 |
-
padding: 1rem;
|
| 528 |
-
}
|
| 529 |
-
.sector-image {
|
| 530 |
-
max-width: 120px;
|
| 531 |
-
max-height: 80px;
|
| 532 |
-
}
|
| 533 |
-
.sector-name {
|
| 534 |
-
max-width: 120px;
|
| 535 |
-
}
|
| 536 |
-
.sector-item {
|
| 537 |
-
padding: 6px;
|
| 538 |
-
}
|
| 539 |
-
.order-confirmed h1 {
|
| 540 |
-
font-size: 1.75rem;
|
| 541 |
-
}
|
| 542 |
-
.scroll-button {
|
| 543 |
-
width: 32px;
|
| 544 |
-
height: 32px;
|
| 545 |
-
font-size: 16px;
|
| 546 |
-
}
|
| 547 |
-
#popup-content {
|
| 548 |
-
width: 95%;
|
| 549 |
-
padding: 16px;
|
| 550 |
-
max-height: 80vh;
|
| 551 |
-
}
|
| 552 |
-
.ingredient-modal {
|
| 553 |
-
width: 95%;
|
| 554 |
-
max-height: 80vh;
|
| 555 |
-
}
|
| 556 |
-
.popup-close {
|
| 557 |
-
width: 40px;
|
| 558 |
-
height: 40px;
|
| 559 |
-
font-size: 24px;
|
| 560 |
-
}
|
| 561 |
-
.popup-close::before {
|
| 562 |
-
animation: lightMoveUp 1.2s infinite linear;
|
| 563 |
-
}
|
| 564 |
-
.ingredient-image {
|
| 565 |
-
max-height: 80px;
|
| 566 |
-
height: 80px;
|
| 567 |
-
}
|
| 568 |
-
.grid {
|
| 569 |
-
grid-template-columns: repeat(2, 1fr);
|
| 570 |
-
}
|
| 571 |
-
}
|
| 572 |
-
@media (min-width: 768px) {
|
| 573 |
-
.grid {
|
| 574 |
-
grid-template-columns: repeat(3, 1fr);
|
| 575 |
-
}
|
| 576 |
-
}
|
| 577 |
-
</style>
|
| 578 |
</head>
|
| 579 |
-
<body class="bg-gray-50">
|
| 580 |
-
<a href="{{ url_for('menu.menu') }}" class="back-to-menu" aria-label="Go back to menu">
|
| 581 |
-
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 mr-2" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
| 582 |
-
<path d="M15 18l-6-6 6-6"></path>
|
| 583 |
-
</svg>
|
| 584 |
-
Back to Menu
|
| 585 |
-
</a>
|
| 586 |
-
|
| 587 |
-
<div class="container mx-auto p-6 pt-2">
|
| 588 |
-
<!-- Order Confirmation -->
|
| 589 |
-
<div class="section bg-white shadow-sm rounded-xl p-6 mb-6 order-confirmed" role="alert">
|
| 590 |
-
<h1 class="text-center text-2xl font-bold text-orange-500">Order Confirmed!</h1>
|
| 591 |
-
<p class="text-center text-gray-600 mt-2">Estimated delivery time: {{ delivery_time }} minutes</p>
|
| 592 |
-
</div>
|
| 593 |
|
| 594 |
-
|
| 595 |
-
<div class="section bg-white rounded-xl shadow-lg p-6 mb-6">
|
| 596 |
-
<div class="flex items-center justify-between mb-4 cursor-pointer" onclick="toggleTierDetails()" aria-expanded="false" aria-controls="tierDetails">
|
| 597 |
-
<div id="tierBadge" class="w-8 h-8 p-1 rounded-full flex items-center justify-center tier-badge">
|
| 598 |
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-white">
|
| 599 |
-
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path>
|
| 600 |
-
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path>
|
| 601 |
-
<path d="M4 22h16"></path>
|
| 602 |
-
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path>
|
| 603 |
-
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path>
|
| 604 |
-
<path d="M9 9c0 .97.64 1.79 1.5 2.05A2 2 0 0 1 12 13c.82 0 1.54-.39 2-1"></path>
|
| 605 |
-
<path d="M18 9H6a4 4 0 0 1 0-8h12a4 4 0 0 1 0 8Z"></path>
|
| 606 |
-
</svg>
|
| 607 |
-
</div>
|
| 608 |
-
<span class="ml-2 text-xl font-bold text-orange-500" id="currentTier">{{ current_tier }} Tier</span>
|
| 609 |
-
<svg id="arrowIcon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-gray-600">
|
| 610 |
-
<path id="arrowPath" d="M19 9l-7 7-7-7"></path>
|
| 611 |
-
</svg>
|
| 612 |
-
</div>
|
| 613 |
-
|
| 614 |
-
<!-- Collapsible Content Section -->
|
| 615 |
-
<div id="tierDetails" class="tier-details hidden">
|
| 616 |
-
<div class="text-center mb-6">
|
| 617 |
-
<p class="text-gray-600">Valid through December {{ validity_year }}</p>
|
| 618 |
-
<p class="text-lg font-semibold mt-2 text-yellow-600" id="pointsDisplay">{{ user_points }} points</p>
|
| 619 |
-
</div>
|
| 620 |
-
|
| 621 |
-
<!-- Progress Bar -->
|
| 622 |
-
<div class="relative h-4 bg-gray-200 rounded-full overflow-hidden mb-4">
|
| 623 |
-
<div id="progressBar" class="absolute left-0 top-0 h-full progress-bar" style="width: {{ progress_percentage }}%"></div>
|
| 624 |
-
</div>
|
| 625 |
-
|
| 626 |
-
<div class="flex justify-between text-sm text-gray-600 mb-4">
|
| 627 |
-
<span id="startPoint">{{ start_point }}</span>
|
| 628 |
-
<span id="endPoint">{{ end_point }}</span>
|
| 629 |
-
</div>
|
| 630 |
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
|
|
|
|
|
|
| 636 |
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
Benefits of Reaching {{ next_tier }} Tier
|
| 641 |
-
</h3>
|
| 642 |
-
<ul class="space-y-3" id="benefitsList">
|
| 643 |
-
{% if next_tier == "Silver" %}
|
| 644 |
-
<li class="flex items-center">
|
| 645 |
-
<span class="text-2xl mr-3">🏷️</span>
|
| 646 |
-
<span class="text-gray-700">10% discount on next purchase</span>
|
| 647 |
-
</li>
|
| 648 |
-
<li class="flex items-center">
|
| 649 |
-
<span class="text-2xl mr-3">🍹</span>
|
| 650 |
-
<span class="text-gray-700">Free soft drink with your next order</span>
|
| 651 |
-
</li>
|
| 652 |
-
{% elif next_tier == "Gold" %}
|
| 653 |
-
<li class="flex items-center">
|
| 654 |
-
<span class="text-2xl mr-3">🏷️</span>
|
| 655 |
-
<span class="text-gray-700">15% discount on next purchase</span>
|
| 656 |
-
</li>
|
| 657 |
-
<li class="flex items-center">
|
| 658 |
-
<span class="text-2xl mr-3">🍰</span>
|
| 659 |
-
<span class="text-gray-700">Free dessert on next order</span>
|
| 660 |
-
</li>
|
| 661 |
-
{% elif next_tier == "Platinum" %}
|
| 662 |
-
<li class="flex items-center">
|
| 663 |
-
<span class="text-2xl mr-3">🏷️</span>
|
| 664 |
-
<span class="text-gray-700">20% discount on next purchase</span>
|
| 665 |
-
</li>
|
| 666 |
-
<li class="flex items-center">
|
| 667 |
-
<span class="text-2xl mr-3">🍴</span>
|
| 668 |
-
<span class="text-gray-700">Free entrée with your next order</span>
|
| 669 |
-
</li>
|
| 670 |
-
{% else %}
|
| 671 |
-
<li class="text-gray-700">You've reached the highest tier! Enjoy exclusive benefits.</li>
|
| 672 |
-
{% endif %}
|
| 673 |
-
</ul>
|
| 674 |
-
</div>
|
| 675 |
-
</div>
|
| 676 |
-
</div>
|
| 677 |
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
role="img"
|
| 698 |
-
aria-describedby="sector-name-{{ loop.index }}"
|
| 699 |
-
onerror="this.src='/static/placeholder.jpg'; this.alt='Placeholder image'"
|
| 700 |
-
>
|
| 701 |
-
<h3 id="sector-name-{{ loop.index }}" class="sector-name">{{ sector_name }}</h3>
|
| 702 |
</div>
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
<!-- Popup for Sector Description -->
|
| 715 |
-
<div id="sector-popup" class="popup" style="display:none;" role="dialog" aria-modal="true" aria-labelledby="sector-popup-title">
|
| 716 |
-
<div id="popup-content">
|
| 717 |
-
<div class="popup-header flex justify-between items-center">
|
| 718 |
-
<h3 id="sector-popup-title" class="text-xl font-semibold text-gray-800">Origin History</h3>
|
| 719 |
-
<button onclick="closePopup()" class="popup-close" aria-label="Close sector description popup"><span>×</span></button>
|
| 720 |
-
</div>
|
| 721 |
-
<p id="sector-description" class="text-gray-700 leading-relaxed"></p>
|
| 722 |
</div>
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
<
|
| 732 |
-
|
| 733 |
-
alt="{{ item.name | escape }}"
|
| 734 |
-
class="order-image lazyload"
|
| 735 |
-
loading="lazy"
|
| 736 |
-
decoding="async"
|
| 737 |
-
role="img"
|
| 738 |
-
aria-label="Image of {{ item.name | escape }}"
|
| 739 |
-
aria-describedby="order-price-{{ loop.index }}"
|
| 740 |
-
onerror="this.src='/static/placeholder.jpg'; this.alt='Placeholder image'"
|
| 741 |
-
/>
|
| 742 |
-
<h3 class="order-item-name" id="order-name-{{ loop.index }}">{{ item.name | escape }}</h3>
|
| 743 |
</div>
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
aria-controls="ingredientsSection{{ loop.index }}"
|
| 753 |
-
data-index="{{ loop.index }}"
|
| 754 |
-
>
|
| 755 |
-
Show Ingredients
|
| 756 |
-
</button>
|
| 757 |
-
|
| 758 |
-
<div id="ingredientsSection{{ loop.index }}" class="ingredients-section hidden mt-4" aria-hidden="true">
|
| 759 |
-
{% if item.ingredients and item.ingredients|length > 0 %}
|
| 760 |
-
<div class="grid grid-cols-2 gap-4 sm:grid-cols-3">
|
| 761 |
-
{% for ingredient in item.ingredients %}
|
| 762 |
-
<button
|
| 763 |
-
class="relative group ingredient-button focus:outline-none focus:ring-2 focus:ring-green-500"
|
| 764 |
-
aria-label="View details for {{ ingredient.name | escape }}"
|
| 765 |
-
data-ingredient='{
|
| 766 |
-
"index": "{{ loop.index }}",
|
| 767 |
-
"name": "{{ ingredient.name | escape }}",
|
| 768 |
-
"image": "{{ ingredient.image | default('/static/placeholder.jpg') | escape }}",
|
| 769 |
-
"health_benefits": "{{ ingredient.health_benefits | escape }}",
|
| 770 |
-
"fun_facts": "{{ ingredient.fun_facts | escape }}"
|
| 771 |
-
}'
|
| 772 |
-
onclick="showIngredientDetails(this)"
|
| 773 |
-
>
|
| 774 |
-
<div class="overflow-hidden rounded-lg">
|
| 775 |
-
<img
|
| 776 |
-
src="{{ ingredient.image | default('/static/placeholder.jpg') }}"
|
| 777 |
-
alt="{{ ingredient.name | escape }}"
|
| 778 |
-
class="ingredient-image lazyload"
|
| 779 |
-
loading="lazy"
|
| 780 |
-
decoding="async"
|
| 781 |
-
onerror="this.src='/static/placeholder.jpg'; this.alt='Placeholder image'"
|
| 782 |
-
/>
|
| 783 |
-
</div>
|
| 784 |
-
<p class="mt-2 text-center text-sm font-medium text-gray-800">{{ ingredient.name | escape }}</p>
|
| 785 |
-
</button>
|
| 786 |
-
{% endfor %}
|
| 787 |
-
</div>
|
| 788 |
-
{% else %}
|
| 789 |
-
<p class="text-gray-600 text-center">No ingredients available for this item.</p>
|
| 790 |
-
{% endif %}
|
| 791 |
</div>
|
| 792 |
-
|
| 793 |
-
</div>
|
| 794 |
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
<
|
| 799 |
-
|
| 800 |
-
<div class="popup-header flex justify-between items-center mb-4">
|
| 801 |
-
<h3 id="modalTitle{{ loop.index }}" class="text-xl font-semibold text-gray-800"></h3>
|
| 802 |
-
<button onclick="closeModal({{ loop.index }})" class="popup-close" aria-label="Close ingredient details modal"><span>×</span></button>
|
| 803 |
-
</div>
|
| 804 |
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
<div class="space-y-4">
|
| 808 |
-
<div class="modal-section">
|
| 809 |
-
<h4 class="font-semibold mb-2 text-gray-800 flex items-center">
|
| 810 |
-
<svg class="w-5 h-5 mr-2 text-teal-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
| 811 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
| 812 |
-
</svg>
|
| 813 |
-
Health Benefits
|
| 814 |
-
</h4>
|
| 815 |
-
<ul id="healthBenefits{{ loop.index }}" class="list-disc list-inside text-gray-700"></ul>
|
| 816 |
-
</div>
|
| 817 |
-
|
| 818 |
-
<div class="modal-section">
|
| 819 |
-
<h4 class="font-semibold mb-2 text-gray-800 flex items-center">
|
| 820 |
-
<svg class="w-5 h-5 mr-2 text-orange-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
| 821 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
| 822 |
-
</svg>
|
| 823 |
-
Fun Facts
|
| 824 |
-
</h4>
|
| 825 |
-
<ul id="funFacts{{ loop.index }}" class="list-disc list-inside text-gray-700"></ul>
|
| 826 |
-
</div>
|
| 827 |
-
</div>
|
| 828 |
-
</div>
|
| 829 |
-
</div>
|
| 830 |
-
</div>
|
| 831 |
-
{% endif %}
|
| 832 |
-
{% endfor %}
|
| 833 |
-
{% else %}
|
| 834 |
-
<div class="no-data">No previous orders found.</div>
|
| 835 |
-
{% endif %}
|
| 836 |
</div>
|
| 837 |
|
| 838 |
-
|
| 839 |
-
// Debounce function for performance
|
| 840 |
-
function debounce(func, wait) {
|
| 841 |
-
let timeout;
|
| 842 |
-
return function executedFunction(...args) {
|
| 843 |
-
const later = () => {
|
| 844 |
-
clearTimeout(timeout);
|
| 845 |
-
func(...args);
|
| 846 |
-
};
|
| 847 |
-
clearTimeout(timeout);
|
| 848 |
-
timeout = setTimeout(later, wait);
|
| 849 |
-
};
|
| 850 |
-
}
|
| 851 |
-
|
| 852 |
-
// Scroll container function
|
| 853 |
-
function scrollContainer(direction) {
|
| 854 |
-
try {
|
| 855 |
-
const container = document.querySelector('.sector-images-container');
|
| 856 |
-
const scrollAmount = 200;
|
| 857 |
-
if (direction === 'left') {
|
| 858 |
-
container.scrollLeft -= scrollAmount;
|
| 859 |
-
} else {
|
| 860 |
-
container.scrollLeft += scrollAmount;
|
| 861 |
-
}
|
| 862 |
-
} catch (e) {
|
| 863 |
-
console.error('Error scrolling container:', e);
|
| 864 |
-
}
|
| 865 |
-
}
|
| 866 |
-
|
| 867 |
-
// Show sector description popup
|
| 868 |
-
function showSectorDescription(description) {
|
| 869 |
-
try {
|
| 870 |
-
document.getElementById('sector-description').innerText = description || 'No description available.';
|
| 871 |
-
document.getElementById('sector-popup').style.display = 'flex';
|
| 872 |
-
document.body.classList.add('modal-open');
|
| 873 |
-
} catch (e) {
|
| 874 |
-
console.error('Error showing sector description:', e);
|
| 875 |
-
}
|
| 876 |
-
}
|
| 877 |
-
|
| 878 |
-
// Close sector popup
|
| 879 |
-
function closePopup() {
|
| 880 |
-
try {
|
| 881 |
-
document.getElementById('sector-popup').style.display = 'none';
|
| 882 |
-
document.body.classList.remove('modal-open');
|
| 883 |
-
} catch (e) {
|
| 884 |
-
console.error('Error closing popup:', e);
|
| 885 |
-
}
|
| 886 |
-
}
|
| 887 |
-
|
| 888 |
-
// Toggle tier details with animation
|
| 889 |
-
function toggleTierDetails() {
|
| 890 |
-
try {
|
| 891 |
-
const tierDetails = document.getElementById('tierDetails');
|
| 892 |
-
const arrowPath = document.getElementById('arrowPath');
|
| 893 |
-
const toggleButton = tierDetails.parentElement.querySelector('[aria-controls="tierDetails"]');
|
| 894 |
-
const isExpanded = !tierDetails.classList.contains('hidden');
|
| 895 |
-
tierDetails.classList.toggle('hidden');
|
| 896 |
-
arrowPath.setAttribute('d', tierDetails.classList.contains('hidden') ? 'M19 9l-7 7-7-7' : 'M19 15l-7-7-7 7');
|
| 897 |
-
toggleButton.setAttribute('aria-expanded', !isExpanded);
|
| 898 |
-
} catch (e) {
|
| 899 |
-
console.error('Error toggling tier details:', e);
|
| 900 |
-
}
|
| 901 |
-
}
|
| 902 |
-
|
| 903 |
-
// Toggle ingredients section
|
| 904 |
-
function toggleIngredients(index) {
|
| 905 |
-
try {
|
| 906 |
-
const section = document.getElementById(`ingredientsSection${index}`);
|
| 907 |
-
const button = document.getElementById(`ingredientsToggleButton${index}`);
|
| 908 |
-
|
| 909 |
-
if (!section || !button) {
|
| 910 |
-
console.error(`Elements not found for index ${index}`);
|
| 911 |
-
return;
|
| 912 |
-
}
|
| 913 |
-
|
| 914 |
-
const isHidden = section.classList.contains('hidden');
|
| 915 |
-
|
| 916 |
-
// Close all other ingredient sections
|
| 917 |
-
document.querySelectorAll('.ingredients-section').forEach(s => {
|
| 918 |
-
s.classList.add('hidden');
|
| 919 |
-
s.setAttribute('aria-hidden', 'true');
|
| 920 |
-
});
|
| 921 |
-
document.querySelectorAll('[id^="ingredientsToggleButton"]').forEach(b => {
|
| 922 |
-
b.textContent = 'Show Ingredients';
|
| 923 |
-
b.setAttribute('aria-expanded', 'false');
|
| 924 |
-
});
|
| 925 |
-
|
| 926 |
-
// Toggle the current section
|
| 927 |
-
if (isHidden) {
|
| 928 |
-
section.classList.remove('hidden');
|
| 929 |
-
section.setAttribute('aria-hidden', 'false');
|
| 930 |
-
button.textContent = 'Hide Ingredients';
|
| 931 |
-
button.setAttribute('aria-expanded', 'true');
|
| 932 |
-
} else {
|
| 933 |
-
section.classList.add('hidden');
|
| 934 |
-
section.setAttribute('aria-hidden', 'true');
|
| 935 |
-
button.textContent = 'Show Ingredients';
|
| 936 |
-
button.setAttribute('aria-expanded', 'false');
|
| 937 |
-
}
|
| 938 |
-
} catch (e) {
|
| 939 |
-
console.error('Error toggling ingredients:', e);
|
| 940 |
-
}
|
| 941 |
-
}
|
| 942 |
-
|
| 943 |
-
// Show ingredient details modal
|
| 944 |
-
function showIngredientDetails(button) {
|
| 945 |
-
try {
|
| 946 |
-
const data = JSON.parse(button.getAttribute('data-ingredient'));
|
| 947 |
-
const { index, name, image, health_benefits, fun_facts } = data;
|
| 948 |
-
|
| 949 |
-
const healthBenefitsList = (health_benefits || '').split(',').filter(item => item.trim());
|
| 950 |
-
const funFactsList = (fun_facts || '').split(',').filter(item => item.trim());
|
| 951 |
-
|
| 952 |
-
const modal = document.getElementById(`ingredientModal${index}`);
|
| 953 |
-
if (!modal) {
|
| 954 |
-
console.error(`Modal not found for index ${index}`);
|
| 955 |
-
return;
|
| 956 |
-
}
|
| 957 |
-
|
| 958 |
-
document.getElementById(`modalTitle${index}`).textContent = name || 'Unknown Ingredient';
|
| 959 |
-
const modalImage = document.getElementById(`modalImage${index}`);
|
| 960 |
-
modalImage.src = image || '/static/placeholder.jpg';
|
| 961 |
-
modalImage.alt = name || 'Ingredient image';
|
| 962 |
-
|
| 963 |
-
const healthBenefitsUl = document.getElementById(`healthBenefits${index}`);
|
| 964 |
-
const funFactsUl = document.getElementById(`funFacts${index}`);
|
| 965 |
-
healthBenefitsUl.innerHTML = healthBenefitsList.length
|
| 966 |
-
? healthBenefitsList.map(item => `<li>${item.trim()}</li>`).join('')
|
| 967 |
-
: '<li>No health benefits available.</li>';
|
| 968 |
-
funFactsUl.innerHTML = funFactsList.length
|
| 969 |
-
? funFactsList.map(item => `<li>${item.trim()}</li>`).join('')
|
| 970 |
-
: '<li>No fun facts available.</li>';
|
| 971 |
-
|
| 972 |
-
modal.style.display = 'flex';
|
| 973 |
-
document.body.classList.add('modal-open');
|
| 974 |
-
} catch (e) {
|
| 975 |
-
console.error('Error showing ingredient details:', e);
|
| 976 |
-
}
|
| 977 |
-
}
|
| 978 |
-
|
| 979 |
-
// Close ingredient modal
|
| 980 |
-
function closeModal(index) {
|
| 981 |
-
try {
|
| 982 |
-
const modal = document.getElementById(`ingredientModal${index}`);
|
| 983 |
-
if (modal) {
|
| 984 |
-
modal.style.display = 'none';
|
| 985 |
-
document.body.classList.remove('modal-open');
|
| 986 |
-
}
|
| 987 |
-
} catch (e) {
|
| 988 |
-
console.error('Error closing modal:', e);
|
| 989 |
-
}
|
| 990 |
-
}
|
| 991 |
-
|
| 992 |
-
// Set progress bar color based on points
|
| 993 |
-
document.addEventListener('DOMContentLoaded', () => {
|
| 994 |
-
try {
|
| 995 |
-
const progressBar = document.getElementById('progressBar');
|
| 996 |
-
const pointsDisplay = document.getElementById('pointsDisplay');
|
| 997 |
-
const points = parseInt(pointsDisplay.textContent, 10) || 0;
|
| 998 |
-
|
| 999 |
-
if (points <= 100) {
|
| 1000 |
-
progressBar.classList.add('range-0-100');
|
| 1001 |
-
} else if (points <= 200) {
|
| 1002 |
-
progressBar.classList.add('range-100-200');
|
| 1003 |
-
} else {
|
| 1004 |
-
progressBar.classList.add('range-200-plus');
|
| 1005 |
-
}
|
| 1006 |
-
} catch (e) {
|
| 1007 |
-
console.error('Error setting progress bar color:', e);
|
| 1008 |
-
}
|
| 1009 |
-
|
| 1010 |
-
// Lazy load images with IntersectionObserver
|
| 1011 |
-
const images = document.querySelectorAll('img.lazyload');
|
| 1012 |
-
if ('IntersectionObserver' in window) {
|
| 1013 |
-
const observer = new IntersectionObserver((entries, observer) => {
|
| 1014 |
-
entries.forEach(entry => {
|
| 1015 |
-
if (entry.isIntersecting) {
|
| 1016 |
-
const img = entry.target;
|
| 1017 |
-
img.src = img.src || '/static/placeholder.jpg';
|
| 1018 |
-
img.classList.remove('lazyload');
|
| 1019 |
-
observer.unobserve(img);
|
| 1020 |
-
}
|
| 1021 |
-
});
|
| 1022 |
-
});
|
| 1023 |
-
images.forEach(img => observer.observe(img));
|
| 1024 |
-
} else {
|
| 1025 |
-
images.forEach(img => {
|
| 1026 |
-
img.src = img.src || '/static/placeholder.jpg';
|
| 1027 |
-
img.classList.remove('lazyload');
|
| 1028 |
-
});
|
| 1029 |
-
}
|
| 1030 |
-
});
|
| 1031 |
-
|
| 1032 |
-
// Close modals on outside click
|
| 1033 |
-
document.addEventListener('click', (e) => {
|
| 1034 |
-
try {
|
| 1035 |
-
if (e.target.id === 'sector-popup') {
|
| 1036 |
-
closePopup();
|
| 1037 |
-
}
|
| 1038 |
-
document.querySelectorAll('.ingredient-modal-container').forEach(modal => {
|
| 1039 |
-
if (e.target === modal) {
|
| 1040 |
-
const index = modal.id.replace('ingredientModal', '');
|
| 1041 |
-
closeModal(index);
|
| 1042 |
-
}
|
| 1043 |
-
});
|
| 1044 |
-
} catch (e) {
|
| 1045 |
-
console.error('Error handling outside click:', e);
|
| 1046 |
-
}
|
| 1047 |
-
});
|
| 1048 |
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
e.preventDefault();
|
| 1054 |
-
scrollContainer(button.classList.contains('left') ? 'left' : 'right');
|
| 1055 |
-
}
|
| 1056 |
-
});
|
| 1057 |
-
});
|
| 1058 |
|
| 1059 |
-
// Keyboard navigation for toggle buttons
|
| 1060 |
-
document.querySelectorAll('[id^="ingredientsToggleButton"]').forEach(button => {
|
| 1061 |
-
button.addEventListener('keydown', (e) => {
|
| 1062 |
-
if (e.key === 'Enter' || e.key === ' ') {
|
| 1063 |
-
e.preventDefault();
|
| 1064 |
-
const index = button.getAttribute('data-index');
|
| 1065 |
-
toggleIngredients(index);
|
| 1066 |
-
}
|
| 1067 |
-
});
|
| 1068 |
-
});
|
| 1069 |
-
</script>
|
| 1070 |
</body>
|
| 1071 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
+
<title>User Profile</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
| 8 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"/>
|
| 9 |
+
<style>
|
| 10 |
+
body {
|
| 11 |
+
background-color: #FDF4E3;
|
| 12 |
+
margin: 0;
|
| 13 |
+
padding: 0;
|
| 14 |
+
position: relative;
|
| 15 |
+
min-height: 100vh;
|
| 16 |
+
}
|
| 17 |
+
/* Top orange bar */
|
| 18 |
+
.top-bar {
|
| 19 |
+
background-color: #FF6F3C;
|
| 20 |
+
width: 100%;
|
| 21 |
+
padding: 10px 15px;
|
| 22 |
+
display: flex;
|
| 23 |
+
align-items: center;
|
| 24 |
+
box-sizing: border-box;
|
| 25 |
+
}
|
| 26 |
+
.back-link {
|
| 27 |
+
display: flex;
|
| 28 |
+
align-items: center;
|
| 29 |
+
text-decoration: none;
|
| 30 |
+
}
|
| 31 |
+
.back-arrow {
|
| 32 |
+
font-size: 1.8rem;
|
| 33 |
+
color: #000; /* Dark black */
|
| 34 |
+
font-weight: bold;
|
| 35 |
+
}
|
| 36 |
+
.back-label {
|
| 37 |
+
margin-left: 10px;
|
| 38 |
+
color: white;
|
| 39 |
+
font-weight: bold;
|
| 40 |
+
font-size: 1rem;
|
| 41 |
+
}
|
| 42 |
+
h1 {
|
| 43 |
+
color: #1C1C1C;
|
| 44 |
+
font-size: 1.2rem;
|
| 45 |
+
margin: 30px 0 15px; /* Default margin for larger screens */
|
| 46 |
+
text-align: center;
|
| 47 |
+
}
|
| 48 |
+
/* For mobile view */
|
| 49 |
+
@media (max-width: 576px) {
|
| 50 |
+
h1 {
|
| 51 |
+
margin-top: 2px; /* Reduced top margin for mobile */
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
.form-control {
|
| 55 |
+
border: 1px solid #333;
|
| 56 |
+
color: #808080;
|
| 57 |
+
background-color: #F9F9F9;
|
| 58 |
+
}
|
| 59 |
+
#referralCode, #rewardPoints {
|
| 60 |
+
color: #000 !important;
|
| 61 |
+
}
|
| 62 |
+
.form-label {
|
| 63 |
+
color: #000 !important;
|
| 64 |
+
font-size: 0.8rem;
|
| 65 |
+
}
|
| 66 |
+
input.form-control[readonly], textarea.form-control[readonly] {
|
| 67 |
+
color: #808080;
|
| 68 |
+
background-color: #F9F9F9 !important;
|
| 69 |
+
}
|
| 70 |
+
input.form-control.editable, textarea.form-control.editable {
|
| 71 |
+
background-color: #FFF8E1 !important;
|
| 72 |
+
color: #000 !important;
|
| 73 |
+
}
|
| 74 |
+
.input-group {
|
| 75 |
+
position: relative;
|
| 76 |
+
}
|
| 77 |
+
.pen-icon {
|
| 78 |
+
position: absolute;
|
| 79 |
+
right: 5px;
|
| 80 |
+
top: 50%;
|
| 81 |
+
transform: translateY(-50%);
|
| 82 |
+
cursor: pointer;
|
| 83 |
+
font-size: 1.2rem;
|
| 84 |
+
color: black;
|
| 85 |
+
}
|
| 86 |
+
.pen-icon.editing {
|
| 87 |
+
color: #333;
|
| 88 |
+
}
|
| 89 |
+
.button-container {
|
| 90 |
+
display: flex;
|
| 91 |
+
flex-direction: column;
|
| 92 |
+
margin-top: 10px;
|
| 93 |
+
}
|
| 94 |
+
/* Updated label button style */
|
| 95 |
+
.orange-label {
|
| 96 |
+
background-color: #ffffff;
|
| 97 |
+
color: white;
|
| 98 |
+
padding: 8px 16px;
|
| 99 |
+
border-radius: 5px;
|
| 100 |
+
font-weight: bold;
|
| 101 |
+
text-align: center;
|
| 102 |
+
margin-top: 20px;
|
| 103 |
+
width: 100%; /* Ensure the label is full width */
|
| 104 |
+
position: absolute;
|
| 105 |
+
bottom: 0;
|
| 106 |
+
}
|
| 107 |
+
.update-btn {
|
| 108 |
+
background-color: #0FAA39; /* Green button */
|
| 109 |
+
color: white;
|
| 110 |
+
border: none;
|
| 111 |
+
border-radius: 5px;
|
| 112 |
+
padding: 5px 12px;
|
| 113 |
+
font-size: 0.8rem;
|
| 114 |
+
font-weight: bold;
|
| 115 |
+
width: 60%; /* Full width inside orange label */
|
| 116 |
+
}
|
| 117 |
+
.update-btn:hover {
|
| 118 |
+
background-color: #0f8e29;
|
| 119 |
+
}
|
| 120 |
+
@media (max-width: 576px) {
|
| 121 |
+
.container {
|
| 122 |
+
padding: 10px;
|
| 123 |
+
}
|
| 124 |
+
.update-btn {
|
| 125 |
+
width: 100%;
|
| 126 |
+
}
|
| 127 |
+
.form-label {
|
| 128 |
+
font-size: 0.75rem;
|
| 129 |
+
}
|
| 130 |
+
.form-control {
|
| 131 |
+
font-size: 0.8rem;
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
</style>
|
| 135 |
+
|
| 136 |
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
| 137 |
+
<script>
|
| 138 |
+
function toggleEditableField(fieldId, penIcon) {
|
| 139 |
+
var input = document.getElementById(fieldId);
|
| 140 |
+
var icon = document.getElementById(penIcon);
|
| 141 |
+
if (input.hasAttribute('readonly')) {
|
| 142 |
+
input.removeAttribute('readonly');
|
| 143 |
+
input.classList.add('editable');
|
| 144 |
+
icon.classList.add('editing');
|
| 145 |
+
} else {
|
| 146 |
+
input.setAttribute('readonly', true);
|
| 147 |
+
input.classList.remove('editable');
|
| 148 |
+
icon.classList.remove('editing');
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
function updateProfile(event) {
|
| 152 |
+
event.preventDefault();
|
| 153 |
+
var formData = $('#profileForm').serialize();
|
| 154 |
+
$.ajax({
|
| 155 |
+
type: "POST",
|
| 156 |
+
url: "/update_profile", // Update this URL with your back-end processing URL
|
| 157 |
+
data: formData,
|
| 158 |
+
success: function(response) {
|
| 159 |
+
if (response.status === "success") {
|
| 160 |
+
alert(response.message);
|
| 161 |
+
location.reload();
|
| 162 |
+
} else {
|
| 163 |
+
alert(response.message);
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
error: function() {
|
| 167 |
+
alert("An error occurred while updating the profile.");
|
| 168 |
+
}
|
| 169 |
+
});
|
| 170 |
+
}
|
| 171 |
+
function copyReferralCode() {
|
| 172 |
+
var referralInput = document.getElementById("referralCode");
|
| 173 |
+
referralInput.select();
|
| 174 |
+
referralInput.setSelectionRange(0, 99999);
|
| 175 |
+
document.execCommand("copy");
|
| 176 |
+
alert("Referral code copied: " + referralInput.value);
|
| 177 |
+
}
|
| 178 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
+
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
|
| 183 |
+
<!-- Top Orange Label Bar -->
|
| 184 |
+
<div class="top-bar">
|
| 185 |
+
<a href="/menu" class="back-link">
|
| 186 |
+
<span class="back-arrow">⟨</span>
|
| 187 |
+
<span class="back-label">Back to Menu</span>
|
| 188 |
+
</a>
|
| 189 |
+
</div>
|
| 190 |
|
| 191 |
+
<!-- Main Container -->
|
| 192 |
+
<div class="container mt-4">
|
| 193 |
+
<h1>User Profile</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
| 195 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 196 |
+
{% if messages %}
|
| 197 |
+
<div class="alert alert-{{ messages[0][0] }}">
|
| 198 |
+
{{ messages[0][1] }}
|
| 199 |
+
</div>
|
| 200 |
+
{% endif %}
|
| 201 |
+
{% endwith %}
|
| 202 |
+
|
| 203 |
+
<div class="card">
|
| 204 |
+
<div class="card-body">
|
| 205 |
+
<form id="profileForm" method="POST" onsubmit="updateProfile(event)">
|
| 206 |
+
<!-- Name -->
|
| 207 |
+
<div class="mb-3">
|
| 208 |
+
<label for="customerName" class="form-label"><strong>Name:</strong></label>
|
| 209 |
+
<div class="input-group">
|
| 210 |
+
<input type="text" id="customerName" name="customerName" class="form-control" value="{{ customer['name'] }}" readonly>
|
| 211 |
+
<span id="pen-icon-customerName" class="pen-icon" onclick="toggleEditableField('customerName', 'pen-icon-customerName')">
|
| 212 |
+
<i class="fas fa-pen"></i>
|
| 213 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
</div>
|
| 215 |
+
</div>
|
| 216 |
+
|
| 217 |
+
<!-- Email -->
|
| 218 |
+
<div class="mb-3">
|
| 219 |
+
<label for="email" class="form-label"><strong>Email:</strong></label>
|
| 220 |
+
<div class="input-group">
|
| 221 |
+
<input type="email" id="email" name="email" class="form-control" value="{{ customer['email'] }}" readonly>
|
| 222 |
+
<span id="pen-icon-email" class="pen-icon" onclick="toggleEditableField('email', 'pen-icon-email')">
|
| 223 |
+
<i class="fas fa-pen"></i>
|
| 224 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
</div>
|
| 226 |
+
</div>
|
| 227 |
+
|
| 228 |
+
<!-- Phone -->
|
| 229 |
+
<div class="mb-3">
|
| 230 |
+
<label for="phone" class="form-label"><strong>Phone:</strong></label>
|
| 231 |
+
<div class="input-group">
|
| 232 |
+
<input type="text" id="phone" name="phone" class="form-control" value="{{ customer['phone'] }}" readonly>
|
| 233 |
+
<span id="pen-icon-phone" class="pen-icon" onclick="toggleEditableField('phone', 'pen-icon-phone')">
|
| 234 |
+
<i class="fas fa-pen"></i>
|
| 235 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
</div>
|
| 237 |
+
</div>
|
| 238 |
+
|
| 239 |
+
<!-- Referral Code -->
|
| 240 |
+
<div class="mb-3">
|
| 241 |
+
<label for="referralCode" class="form-label"><strong>Referral Code:</strong></label>
|
| 242 |
+
<div class="input-group">
|
| 243 |
+
<input type="text" id="referralCode" name="referralCode" class="form-control" value="{{ customer['referral_code'] }}" readonly>
|
| 244 |
+
<button type="button" class="copy-btn" onclick="copyReferralCode()">📋</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
</div>
|
| 246 |
+
</div>
|
|
|
|
| 247 |
|
| 248 |
+
<!-- Reward Points -->
|
| 249 |
+
<div class="mb-3">
|
| 250 |
+
<label for="rewardPoints" class="form-label"><strong>Reward Points:</strong></label>
|
| 251 |
+
<input type="text" id="rewardPoints" name="rewardPoints" class="form-control" value="{{ customer['reward_points'] }}" readonly>
|
| 252 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
|
| 254 |
+
</form>
|
| 255 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
</div>
|
| 257 |
|
| 258 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
|
| 260 |
+
<!-- Orange Label with Update Profile Button at the Bottom -->
|
| 261 |
+
<div class="orange-label">
|
| 262 |
+
<button type="submit" class="update-btn" form="profileForm">Update Profile</button>
|
| 263 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
</body>
|
| 266 |
+
</html>
|