Subbu1304 commited on
Commit
2afeca8
·
verified ·
1 Parent(s): b06f237

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +22 -1
templates/menu.html CHANGED
@@ -630,7 +630,28 @@ form-check-input addon-option{
630
  {% if selected_category == "Customized Dish" %}checked{% endif %} onchange="this.form.submit()">
631
  <label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
632
  </div> -->
633
- </form> -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
634
 
635
 
636
 
 
630
  {% if selected_category == "Customized Dish" %}checked{% endif %} onchange="this.form.submit()">
631
  <label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
632
  </div> -->
633
+ <!-- </form> -->
634
+ <form method="get" action="/menu" class="text-center mb-4">
635
+ <label class="form-label fw-bold">Select a Category:</label>
636
+
637
+ <div class="form-check form-check-inline">
638
+ {% for category in categories %}
639
+ <!-- Replace the radio input with a button -->
640
+ <button type="submit" name="category" value="{{ category }}" class="category-btn
641
+ {% if selected_category == category %}active-btn{% endif %}">
642
+ {{ category }}
643
+ </button>
644
+ {% endfor %}
645
+ </div>
646
+
647
+ <!-- Separate Customized Dish button in a new div to align it properly -->
648
+ <div class="form-check">
649
+ <button type="submit" name="category" value="Customized Dish" class="category-btn
650
+ {% if selected_category == "Customized Dish" %}active-btn{% endif %}">
651
+ Customized Dish
652
+ </button>
653
+ </div>
654
+ </form>
655
 
656
 
657