nagasurendra commited on
Commit
e7145f7
·
verified ·
1 Parent(s): f9ccdd4

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +28 -14
templates/menu.html CHANGED
@@ -334,7 +334,16 @@ form-check-input addon-option{
334
  border-color: #388E3C;
335
  }
336
  /* Custom Toggle Switch Styling */
337
- /* Custom Square Toggle Switch Styling */
 
 
 
 
 
 
 
 
 
338
  .custom-toggle {
339
  -webkit-appearance: none;
340
  -moz-appearance: none;
@@ -369,6 +378,7 @@ form-check-input addon-option{
369
  }
370
 
371
 
 
372
  /* Optional: Style the labels */
373
  .form-check-label {
374
  font-size: 16px;
@@ -456,20 +466,23 @@ form-check-input addon-option{
456
  <form method="get" action="/menu" class="text-center mb-4">
457
  <label class="form-label fw-bold">Select a Category:</label>
458
 
459
- <!-- Veg Toggle Button -->
460
- <div class="form-check form-check-inline">
461
- <input type="radio" id="category-Veg" name="category" value="Veg"
462
- class="custom-toggle"
463
- {% if selected_category == "Veg" %}checked{% endif %} onchange="this.form.submit()">
464
- <label class="form-check-label" for="category-Veg">Veg</label>
465
- </div>
 
 
466
 
467
- <!-- Customized Dish Toggle Button -->
468
- <div class="form-check form-check-inline">
469
- <input type="radio" id="category-CustomizedDish" name="category" value="Customized Dish"
470
- class="custom-toggle"
471
- {% if selected_category == "Customized Dish" %}checked{% endif %} onchange="this.form.submit()">
472
- <label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
 
473
  </div>
474
 
475
  <!-- Non-Veg logic handled in backend but not displayed in UI -->
@@ -477,6 +490,7 @@ form-check-input addon-option{
477
  </form>
478
 
479
 
 
480
 
481
  <!-- Show menu items only when Customized Dish is not selected -->
482
  <div class="container mt-4">
 
334
  border-color: #388E3C;
335
  }
336
  /* Custom Toggle Switch Styling */
337
+
338
+ /* Flex container to align toggle buttons */
339
+ .toggle-container {
340
+ display: flex;
341
+ justify-content: flex-start; /* Align buttons to the left */
342
+ gap: 20px; /* Adjust space between buttons */
343
+ margin: 0 auto; /* Center align the container if required */
344
+ }
345
+
346
+ /* Custom Toggle Switch Styling */
347
  .custom-toggle {
348
  -webkit-appearance: none;
349
  -moz-appearance: none;
 
378
  }
379
 
380
 
381
+
382
  /* Optional: Style the labels */
383
  .form-check-label {
384
  font-size: 16px;
 
466
  <form method="get" action="/menu" class="text-center mb-4">
467
  <label class="form-label fw-bold">Select a Category:</label>
468
 
469
+ <!-- Wrapper for the toggle buttons -->
470
+ <div class="toggle-container">
471
+ <!-- Veg Toggle Button -->
472
+ <div class="form-check form-check-inline">
473
+ <input type="radio" id="category-Veg" name="category" value="Veg"
474
+ class="custom-toggle"
475
+ {% if selected_category == "Veg" %}checked{% endif %} onchange="this.form.submit()">
476
+ <label class="form-check-label" for="category-Veg">Veg</label>
477
+ </div>
478
 
479
+ <!-- Customized Dish Toggle Button -->
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>
485
+ </div>
486
  </div>
487
 
488
  <!-- Non-Veg logic handled in backend but not displayed in UI -->
 
490
  </form>
491
 
492
 
493
+
494
 
495
  <!-- Show menu items only when Customized Dish is not selected -->
496
  <div class="container mt-4">