nagasurendra commited on
Commit
0c48657
·
verified ·
1 Parent(s): a8ea6f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -7
app.py CHANGED
@@ -67,21 +67,42 @@ def app():
67
  <h2 id="modal-name"></h2>
68
  <p id="modal-description"></p>
69
  <p id="modal-price"></p>
70
- <label for="spice-level">Choose Spice Level:</label>
71
- <select id="spice-level">
72
- <option value="Mild">Mild</option>
73
- <option value="Medium">Medium</option>
74
- <option value="Spicy">Spicy</option>
75
- </select>
76
- <br><br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  <label for="quantity">Quantity:</label>
78
  <input type="number" id="quantity" value="1" min="1" style="width: 50px;" />
79
  <br><br>
80
  <textarea id="special-instructions" placeholder="Add special instructions here..." style="width: 100%; height: 60px;"></textarea>
81
  <br><br>
 
 
82
  <button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;">Add to Cart</button>
83
  </div>
84
 
 
85
  <script>
86
  function openModal(name, image, description, price) {
87
  document.getElementById('modal').style.display = 'block';
 
67
  <h2 id="modal-name"></h2>
68
  <p id="modal-description"></p>
69
  <p id="modal-price"></p>
70
+
71
+ <!-- Spice Levels -->
72
+ <label for="spice-level">Choose a Spice Level (Required):</label>
73
+ <div id="spice-level-options" style="display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0;">
74
+ <label><input type="radio" name="spice-level" value="American Mild" required /> American Mild</label>
75
+ <label><input type="radio" name="spice-level" value="American Medium" required /> American Medium</label>
76
+ <label><input type="radio" name="spice-level" value="American Spicy" required /> American Spicy</label>
77
+ <label><input type="radio" name="spice-level" value="Indian Mild" required /> Indian Mild</label>
78
+ <label><input type="radio" name="spice-level" value="Indian Medium" required /> Indian Medium</label>
79
+ <label><input type="radio" name="spice-level" value="Indian Very Spicy" required /> Indian Very Spicy</label>
80
+ </div>
81
+
82
+ <!-- Biryani Extras -->
83
+ <label for="biryani-extras">Biryani Extras (Optional - Choose as many as you like):</label>
84
+ <div id="biryani-extras-options" style="display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0;">
85
+ <label><input type="checkbox" name="biryani-extra" value="Extra Raitha 4oz" /> Extra Raitha 4oz + $1.00</label>
86
+ <label><input type="checkbox" name="biryani-extra" value="Extra Raitha 8oz" /> Extra Raitha 8oz + $2.00</label>
87
+ <label><input type="checkbox" name="biryani-extra" value="Extra Salan 4oz" /> Extra Salan 4oz + $1.00</label>
88
+ <label><input type="checkbox" name="biryani-extra" value="Extra Salan 8oz" /> Extra Salan 8oz + $2.00</label>
89
+ <label><input type="checkbox" name="biryani-extra" value="Extra Onion" /> Extra Onion + $1.00</label>
90
+ <label><input type="checkbox" name="biryani-extra" value="Extra Onion & Lemon" /> Extra Onion & Lemon + $2.00</label>
91
+ <label><input type="checkbox" name="biryani-extra" value="Extra Fried Onion" /> Extra Fried Onion 4oz + $2.00</label>
92
+ </div>
93
+
94
+ <!-- Quantity and Special Instructions -->
95
  <label for="quantity">Quantity:</label>
96
  <input type="number" id="quantity" value="1" min="1" style="width: 50px;" />
97
  <br><br>
98
  <textarea id="special-instructions" placeholder="Add special instructions here..." style="width: 100%; height: 60px;"></textarea>
99
  <br><br>
100
+
101
+ <!-- Add to Cart Button -->
102
  <button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;">Add to Cart</button>
103
  </div>
104
 
105
+
106
  <script>
107
  function openModal(name, image, description, price) {
108
  document.getElementById('modal').style.display = 'block';