Update templates/menu.html
Browse files- templates/menu.html +12 -12
templates/menu.html
CHANGED
@@ -465,27 +465,27 @@ form-check-input addon-option{
|
|
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 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
|
|
476 |
</div>
|
477 |
|
478 |
-
<!-- Customized Dish
|
479 |
<div class="form-check form-check-inline">
|
480 |
-
<input type="checkbox" id="
|
481 |
-
|
482 |
-
|
483 |
-
<label class="form-check-label" for="
|
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>
|
|
|
465 |
|
466 |
|
467 |
<form method="get" action="/menu" class="text-center mb-4">
|
468 |
+
<label class="form-label fw-bold">Select a Category:</label>
|
|
|
|
|
469 |
<div class="form-check form-check-inline">
|
470 |
+
{% for category in categories %}
|
471 |
+
<input type="radio" id="category-{{ category }}" name="category" value="{{ category }}" class="custom-radio"
|
472 |
+
{% if selected_category == category %}checked{% endif %} onchange="this.form.submit()">
|
473 |
+
<label class="form-check-label" for="category-{{ category }}">{{ category }}</label>
|
474 |
+
{% endfor %}
|
475 |
</div>
|
476 |
|
477 |
+
<!-- Customized Dish radio button (replaced with a toggle) -->
|
478 |
<div class="form-check form-check-inline">
|
479 |
+
<input type="checkbox" id="category-CustomizedDish" name="category" value="Customized Dish"
|
480 |
+
class="custom-toggle"
|
481 |
+
{% if selected_category == "Customized Dish" %}checked{% endif %} onchange="this.form.submit()">
|
482 |
+
<label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
|
483 |
</div>
|
484 |
</form>
|
485 |
|
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>
|