Update templates/menu.html
Browse files- templates/menu.html +33 -33
templates/menu.html
CHANGED
@@ -466,7 +466,7 @@ form-check-input addon-option{
|
|
466 |
<form method="get" action="/menu" class="text-center mb-4">
|
467 |
<label class="form-label fw-bold">Show Veg Items:</label>
|
468 |
<div class="form-check form-check-inline">
|
469 |
-
<!-- Veg toggle switch
|
470 |
<input type="checkbox" id="veg-toggle" name="veg"
|
471 |
{% if selected_category == "Veg" %}checked{% endif %} onchange="this.form.submit()" class="custom-toggle">
|
472 |
<label class="form-check-label" for="veg-toggle">Veg Only</label>
|
@@ -481,15 +481,12 @@ form-check-input addon-option{
|
|
481 |
</div>
|
482 |
</form>
|
483 |
|
|
|
|
|
|
|
484 |
|
485 |
-
|
486 |
-
|
487 |
-
<!-- Show menu items only when Customized Dish is not selected -->
|
488 |
-
<div class="container mt-4">
|
489 |
-
<h1 class="text-center">Menu</h1>
|
490 |
-
|
491 |
-
<!-- Display text boxes for Customized Dish -->
|
492 |
-
{% if selected_category == "Customized Dish" %}
|
493 |
<div id="custom-dish-form" class="mt-4">
|
494 |
<h3>Create Your Custom Dish</h3>
|
495 |
<form method="POST" action="/customdish/generate_custom_dish">
|
@@ -504,34 +501,37 @@ form-check-input addon-option{
|
|
504 |
<button type="submit" class="btn btn-primary">Submit</button>
|
505 |
</form>
|
506 |
</div>
|
507 |
-
{% else %}
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
</button>
|
525 |
-
</div>
|
526 |
-
</div>
|
527 |
-
</div>
|
528 |
-
{% endfor %}
|
529 |
</div>
|
|
|
530 |
{% endfor %}
|
531 |
</div>
|
532 |
-
{%
|
|
|
|
|
533 |
|
534 |
-
|
|
|
|
|
|
|
|
|
|
|
535 |
|
536 |
<!-- View Cart Button -->
|
537 |
<div class="view-cart-container">
|
|
|
466 |
<form method="get" action="/menu" class="text-center mb-4">
|
467 |
<label class="form-label fw-bold">Show Veg Items:</label>
|
468 |
<div class="form-check form-check-inline">
|
469 |
+
<!-- Veg toggle switch -->
|
470 |
<input type="checkbox" id="veg-toggle" name="veg"
|
471 |
{% if selected_category == "Veg" %}checked{% endif %} onchange="this.form.submit()" class="custom-toggle">
|
472 |
<label class="form-check-label" for="veg-toggle">Veg Only</label>
|
|
|
481 |
</div>
|
482 |
</form>
|
483 |
|
484 |
+
<!-- Show menu items only when Customized Dish is not selected -->
|
485 |
+
<div class="container mt-4">
|
486 |
+
<h1 class="text-center">Menu</h1>
|
487 |
|
488 |
+
<!-- Display text boxes for Customized Dish -->
|
489 |
+
{% if selected_category == "Customized Dish" %}
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
<div id="custom-dish-form" class="mt-4">
|
491 |
<h3>Create Your Custom Dish</h3>
|
492 |
<form method="POST" action="/customdish/generate_custom_dish">
|
|
|
501 |
<button type="submit" class="btn btn-primary">Submit</button>
|
502 |
</form>
|
503 |
</div>
|
504 |
+
{% else %}
|
505 |
+
<!-- Menu Sections -->
|
506 |
+
{% for section, items in ordered_menu.items() %}
|
507 |
+
<h3>{{ section }}</h3>
|
508 |
+
<div class="row">
|
509 |
+
{% for item in items %}
|
510 |
+
<div class="col-md-6 mb-4">
|
511 |
+
<div class="card menu-card">
|
512 |
+
<img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';" loading="lazy">
|
513 |
+
<div class="card-body">
|
514 |
+
<h5 class="card-title">{{ item.Name }}</h5>
|
515 |
+
<p class="card-text">${{ item.Price__c }}</p>
|
516 |
+
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#itemModal"
|
517 |
+
onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}', '{{ selected_category }}')">
|
518 |
+
Add
|
519 |
+
</button>
|
520 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
521 |
</div>
|
522 |
+
</div>
|
523 |
{% endfor %}
|
524 |
</div>
|
525 |
+
{% endfor %}
|
526 |
+
{% endif %}
|
527 |
+
</div>
|
528 |
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
<!-- Show menu items only when Customized Dish is not selected -->
|
533 |
+
<div class="container mt-4">
|
534 |
+
|
535 |
|
536 |
<!-- View Cart Button -->
|
537 |
<div class="view-cart-container">
|