nagasurendra commited on
Commit
0ead5f7
·
verified ·
1 Parent(s): 0a4e575

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +26 -4
templates/menu.html CHANGED
@@ -182,17 +182,39 @@
182
  <div class="container mt-4">
183
  <h1 class="text-center">Menu</h1>
184
 
185
- <!-- Filter Section -->
186
  <form method="get" action="/menu" class="text-center mb-4">
187
  <label for="category" class="form-label fw-bold">Filter by Category:</label>
188
  <select id="category" name="category" class="form-select" onchange="this.form.submit()">
189
  {% for category in categories %}
190
- <option value="{{ category }}" {% if selected_category == category %}selected{% endif %}>
191
- {{ category }}
192
- </option>
193
  {% endfor %}
 
 
 
194
  </select>
195
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  <div class="fixed-search-container">
197
  <input type="text" id="searchBar" class="form-control" placeholder="Search items or sections..." onkeyup="filterMenu()">
198
  </div>
 
182
  <div class="container mt-4">
183
  <h1 class="text-center">Menu</h1>
184
 
185
+ <!-- Category Filter -->
186
  <form method="get" action="/menu" class="text-center mb-4">
187
  <label for="category" class="form-label fw-bold">Filter by Category:</label>
188
  <select id="category" name="category" class="form-select" onchange="this.form.submit()">
189
  {% for category in categories %}
190
+ <option value="{{ category }}" {% if selected_category == category %}selected{% endif %}>
191
+ {{ category }}
192
+ </option>
193
  {% endfor %}
194
+ <option value="Customized Dish" {% if selected_category == "Customized Dish" %}selected{% endif %}>
195
+ Customized Dish
196
+ </option>
197
  </select>
198
  </form>
199
+
200
+ <!-- Display text boxes for Customized Dish -->
201
+ {% if selected_category == "Customized Dish" %}
202
+ <div id="custom-dish-form" class="mt-4">
203
+ <h3>Create Your Custom Dish</h3>
204
+ <form method="POST" action="/generate_custom_dish">
205
+ <div class="mb-3">
206
+ <label for="custom-dish-name" class="form-label">Dish Name</label>
207
+ <input type="text" class="form-control" id="custom-dish-name" name="name" required>
208
+ </div>
209
+ <div class="mb-3">
210
+ <label for="custom-dish-description" class="form-label">Dish Description</label>
211
+ <textarea class="form-control" id="custom-dish-description" name="description" required></textarea>
212
+ </div>
213
+ <button type="submit" class="btn btn-primary">Submit</button>
214
+ </form>
215
+ </div>
216
+ {% endif %}
217
+
218
  <div class="fixed-search-container">
219
  <input type="text" id="searchBar" class="form-control" placeholder="Search items or sections..." onkeyup="filterMenu()">
220
  </div>