nagasurendra commited on
Commit
8c932c2
·
verified ·
1 Parent(s): 9c8f7c9

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +5 -3
templates/menu.html CHANGED
@@ -468,15 +468,17 @@ form-check-input addon-option{
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>
 
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
+ <!-- Toggle switch instead of radio button -->
472
+ <input type="radio" id="category-{{ category }}" name="category" value="{{ category }}"
473
+ class="custom-toggle"
474
  {% if selected_category == category %}checked{% endif %} onchange="this.form.submit()">
475
  <label class="form-check-label" for="category-{{ category }}">{{ category }}</label>
476
  {% endfor %}
477
  </div>
478
 
479
+ <!-- Customized Dish toggle (styled like a switch) -->
480
  <div class="form-check form-check-inline">
481
+ <input type="radio" id="category-CustomizedDish" name="category" value="Customized Dish"
482
  class="custom-toggle"
483
  {% if selected_category == "Customized Dish" %}checked{% endif %} onchange="this.form.submit()">
484
  <label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>