Update templates/menu.html
Browse files- templates/menu.html +12 -21
templates/menu.html
CHANGED
@@ -880,6 +880,7 @@
|
|
880 |
</a>
|
881 |
</div>
|
882 |
|
|
|
883 |
<div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
|
884 |
<div class="modal-dialog modal-dialog-centered">
|
885 |
<div class="modal-content">
|
@@ -888,51 +889,41 @@
|
|
888 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
889 |
</div>
|
890 |
<div class="modal-body">
|
891 |
-
|
|
|
|
|
892 |
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
|
|
893 |
<p id="modal-price" class="text-muted text-center"></p>
|
|
|
894 |
<p id="modal-description" class="text-secondary"></p>
|
895 |
-
|
896 |
-
|
897 |
-
<div id="first-row">
|
898 |
-
<h6 id="first-row-title" style="display: none;">Customization Options</h6>
|
899 |
-
<div class="addon-section">
|
900 |
-
<h6>Choose Preparation Style</h6>
|
901 |
-
<div id="prep-style-options"></div>
|
902 |
-
</div>
|
903 |
-
<div class="addon-section">
|
904 |
-
<h6>Type</h6>
|
905 |
-
<div id="type-options"></div>
|
906 |
-
</div>
|
907 |
-
<div class="addon-section">
|
908 |
-
<h6>Spice Level</h6>
|
909 |
-
<div id="spice-level-options"></div>
|
910 |
-
</div>
|
911 |
-
</div>
|
912 |
-
|
913 |
<div id="modal-addons" class="modal-addons mt-4">
|
914 |
-
<h6
|
915 |
<div id="addons-list" class="addons-container">Loading customization options...</div>
|
916 |
</div>
|
917 |
-
|
918 |
<div class="mt-4">
|
919 |
<h6>Custom Request</h6>
|
920 |
<textarea id="modal-instructions" class="form-control" placeholder="Enter any special instructions here..."></textarea>
|
921 |
</div>
|
922 |
<span id="modal-section" data-section="" data-category="" style="display: none;"></span>
|
923 |
</div>
|
|
|
924 |
<div class="modal-footer d-flex align-items-center justify-content-between">
|
|
|
925 |
<div class="d-flex align-items-center gap-2">
|
926 |
<button type="button" class="btn btn-outline-secondary" id="decreaseQuantity">-</button>
|
927 |
<input type="text" class="form-control text-center" id="quantityInput" value="1" readonly style="width: 50px;"/>
|
928 |
<button type="button" class="btn btn-outline-secondary" id="increaseQuantity">+</button>
|
929 |
</div>
|
|
|
930 |
<button type="button" class="btn btn-primary" onclick="addToCartFromModal()">Add to Cart</button>
|
931 |
</div>
|
932 |
</div>
|
933 |
</div>
|
934 |
</div>
|
935 |
|
|
|
936 |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
937 |
<script>
|
938 |
// Video Handling Functions
|
|
|
880 |
</a>
|
881 |
</div>
|
882 |
|
883 |
+
<!-- Modal for Item Details -->
|
884 |
<div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
|
885 |
<div class="modal-dialog modal-dialog-centered">
|
886 |
<div class="modal-content">
|
|
|
889 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
890 |
</div>
|
891 |
<div class="modal-body">
|
892 |
+
<!-- Item Image -->
|
893 |
+
<img id="modal-img" class="img-fluid rounded mb-3 d-block mx-auto" alt="Item Image" style="max-height: 200px; object-fit: cover;">
|
894 |
+
<!-- Item Name -->
|
895 |
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
896 |
+
<!-- Item Price -->
|
897 |
<p id="modal-price" class="text-muted text-center"></p>
|
898 |
+
<!-- Item Description -->
|
899 |
<p id="modal-description" class="text-secondary"></p>
|
900 |
+
<!-- Add-ons -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
901 |
<div id="modal-addons" class="modal-addons mt-4">
|
902 |
+
<h6>Customization Options</h6>
|
903 |
<div id="addons-list" class="addons-container">Loading customization options...</div>
|
904 |
</div>
|
|
|
905 |
<div class="mt-4">
|
906 |
<h6>Custom Request</h6>
|
907 |
<textarea id="modal-instructions" class="form-control" placeholder="Enter any special instructions here..."></textarea>
|
908 |
</div>
|
909 |
<span id="modal-section" data-section="" data-category="" style="display: none;"></span>
|
910 |
</div>
|
911 |
+
<!-- Quantity Controls and Add to Cart Button -->
|
912 |
<div class="modal-footer d-flex align-items-center justify-content-between">
|
913 |
+
<!-- Quantity Controls -->
|
914 |
<div class="d-flex align-items-center gap-2">
|
915 |
<button type="button" class="btn btn-outline-secondary" id="decreaseQuantity">-</button>
|
916 |
<input type="text" class="form-control text-center" id="quantityInput" value="1" readonly style="width: 50px;"/>
|
917 |
<button type="button" class="btn btn-outline-secondary" id="increaseQuantity">+</button>
|
918 |
</div>
|
919 |
+
<!-- Add to Cart Button -->
|
920 |
<button type="button" class="btn btn-primary" onclick="addToCartFromModal()">Add to Cart</button>
|
921 |
</div>
|
922 |
</div>
|
923 |
</div>
|
924 |
</div>
|
925 |
|
926 |
+
|
927 |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
928 |
<script>
|
929 |
// Video Handling Functions
|