Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +15 -10
templates/menu.html
CHANGED
@@ -462,32 +462,36 @@ form-check-input addon-option{
|
|
462 |
<i class="bi bi-search search-icon"></i> <!-- Search icon inside the input -->
|
463 |
</div>
|
464 |
</div>
|
|
|
|
|
465 |
<form method="get" action="/menu" class="text-center mb-4">
|
466 |
<label class="form-label fw-bold">Select Category:</label>
|
467 |
-
|
468 |
<!-- Veg Toggle -->
|
469 |
<div class="form-check form-check-inline">
|
470 |
-
<input type="checkbox" id="veg-toggle" name="
|
471 |
-
|
472 |
-
|
473 |
<label class="form-check-label" for="veg-toggle">Veg</label>
|
474 |
</div>
|
475 |
-
|
476 |
-
|
477 |
-
|
|
|
|
|
|
|
478 |
<label class="form-check-label" for="customized-dish-toggle">Customized Dish</label>
|
479 |
</div>
|
480 |
</form>
|
481 |
|
482 |
|
483 |
|
484 |
-
|
485 |
<!-- Show menu items only when Customized Dish is not selected -->
|
486 |
<div class="container mt-4">
|
487 |
<h1 class="text-center">Menu</h1>
|
488 |
|
489 |
<!-- Display text boxes for Customized Dish -->
|
490 |
-
{% if
|
491 |
<div id="custom-dish-form" class="mt-4">
|
492 |
<h3>Create Your Custom Dish</h3>
|
493 |
<form method="POST" action="/customdish/generate_custom_dish">
|
@@ -502,7 +506,8 @@ form-check-input addon-option{
|
|
502 |
<button type="submit" class="btn btn-primary">Submit</button>
|
503 |
</form>
|
504 |
</div>
|
505 |
-
{%
|
|
|
506 |
|
507 |
<!-- Menu Sections -->
|
508 |
{% for section, items in ordered_menu.items() %}
|
|
|
462 |
<i class="bi bi-search search-icon"></i> <!-- Search icon inside the input -->
|
463 |
</div>
|
464 |
</div>
|
465 |
+
|
466 |
+
|
467 |
<form method="get" action="/menu" class="text-center mb-4">
|
468 |
<label class="form-label fw-bold">Select Category:</label>
|
469 |
+
|
470 |
<!-- Veg Toggle -->
|
471 |
<div class="form-check form-check-inline">
|
472 |
+
<input type="checkbox" id="veg-toggle" name="veg-toggle"
|
473 |
+
{% if selected_category == "Veg" %}checked{% endif %}
|
474 |
+
onchange="this.form.submit()">
|
475 |
<label class="form-check-label" for="veg-toggle">Veg</label>
|
476 |
</div>
|
477 |
+
|
478 |
+
<!-- Customized Dish Toggle -->
|
479 |
+
<div class="form-check form-check-inline">
|
480 |
+
<input type="checkbox" id="customized-dish-toggle" name="customized-dish-toggle"
|
481 |
+
{% if selected_category == "Customized Dish" %}checked{% endif %}
|
482 |
+
onchange="this.form.submit()">
|
483 |
<label class="form-check-label" for="customized-dish-toggle">Customized Dish</label>
|
484 |
</div>
|
485 |
</form>
|
486 |
|
487 |
|
488 |
|
|
|
489 |
<!-- Show menu items only when Customized Dish is not selected -->
|
490 |
<div class="container mt-4">
|
491 |
<h1 class="text-center">Menu</h1>
|
492 |
|
493 |
<!-- Display text boxes for Customized Dish -->
|
494 |
+
{% if show_custom_dish_form %}
|
495 |
<div id="custom-dish-form" class="mt-4">
|
496 |
<h3>Create Your Custom Dish</h3>
|
497 |
<form method="POST" action="/customdish/generate_custom_dish">
|
|
|
506 |
<button type="submit" class="btn btn-primary">Submit</button>
|
507 |
</form>
|
508 |
</div>
|
509 |
+
{% endif %}
|
510 |
+
|
511 |
|
512 |
<!-- Menu Sections -->
|
513 |
{% for section, items in ordered_menu.items() %}
|