Update templates/order.html
Browse files- templates/order.html +28 -7
templates/order.html
CHANGED
@@ -172,16 +172,37 @@
|
|
172 |
</div>
|
173 |
{% endfor %}
|
174 |
|
175 |
-
<!-- Previous Pending Bill -->
|
176 |
{% if pending_order %}
|
177 |
-
<
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
</div>
|
183 |
</div>
|
184 |
-
|
185 |
{% endif %}
|
186 |
|
187 |
<!-- Total Section -->
|
|
|
172 |
</div>
|
173 |
{% endfor %}
|
174 |
|
175 |
+
<!-- Previous Pending Bill Items -->
|
176 |
{% if pending_order %}
|
177 |
+
<h5 class="mt-5">Previous Pending Order Details:</h5>
|
178 |
+
{% for line in pending_order.Order_Details__c.split('\n') %}
|
179 |
+
{% set item_parts = line.split('|') %}
|
180 |
+
<div class="cart-item">
|
181 |
+
<!-- Item Image -->
|
182 |
+
<img src="{{ item_parts[4].strip().replace('Image:', '') }}"
|
183 |
+
alt="{{ item_parts[0].strip() }}"
|
184 |
+
onerror="this.src='/static/placeholder.jpg';">
|
185 |
+
|
186 |
+
<!-- Item Details -->
|
187 |
+
<div class="cart-item-details">
|
188 |
+
<div class="cart-item-title">{{ item_parts[0].strip() }}</div> <!-- Item Name & Quantity -->
|
189 |
+
|
190 |
+
|
191 |
+
<div class="cart-item-addons">
|
192 |
+
<small class="text-muted">Add-ons: {{ item_parts[1].strip().replace('Add-Ons:', '') }}</small>
|
193 |
+
</div>
|
194 |
+
|
195 |
+
<div class="cart-item-instructions">
|
196 |
+
<small class="text-muted">Instructions: {{ item_parts[2].strip().replace('Instructions:', '') }}</small>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<!-- Price -->
|
201 |
+
<div class="cart-item-actions m">
|
202 |
+
<span style="font-size: 16px; margin-right: 13px">{{ item_parts[3].strip().replace('Price:', '') }}</span>
|
203 |
</div>
|
204 |
</div>
|
205 |
+
{% endfor %}
|
206 |
{% endif %}
|
207 |
|
208 |
<!-- Total Section -->
|