Spaces:
Sleeping
Sleeping
Update templates/order.html
Browse files- templates/order.html +10 -16
templates/order.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
color: #333333; /* Dark text for titles */
|
| 33 |
margin-bottom: 10px;
|
| 34 |
}
|
| 35 |
-
.order-item
|
| 36 |
background-color: #f8f9fa; /* Light gray background for rows */
|
| 37 |
padding: 10px 15px;
|
| 38 |
border-radius: 8px;
|
|
@@ -61,29 +61,23 @@
|
|
| 61 |
|
| 62 |
<!-- Items Section -->
|
| 63 |
<div class="section">
|
| 64 |
-
<h3 class="section-title">
|
| 65 |
-
{%
|
| 66 |
-
<div
|
| 67 |
-
<
|
| 68 |
</div>
|
| 69 |
-
{%
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
<!-- Add-Ons Section -->
|
| 73 |
-
<div class="section mt-4">
|
| 74 |
-
<h3 class="section-title">Add-Ons:</h3>
|
| 75 |
-
{% for addon in order.Add_Ons__c.split('\n') %}
|
| 76 |
-
<div class="addon-item">
|
| 77 |
-
<span>{{ addon }}</span>
|
| 78 |
-
</div>
|
| 79 |
-
{% endfor %}
|
| 80 |
</div>
|
| 81 |
|
| 82 |
<!-- Total Section -->
|
|
|
|
| 83 |
<div class="order-summary mt-4">
|
| 84 |
<span>Total: </span>
|
| 85 |
<span class="total-price">${{ order.Total_Amount__c }}</span>
|
| 86 |
</div>
|
|
|
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
</body>
|
|
|
|
| 32 |
color: #333333; /* Dark text for titles */
|
| 33 |
margin-bottom: 10px;
|
| 34 |
}
|
| 35 |
+
.order-item {
|
| 36 |
background-color: #f8f9fa; /* Light gray background for rows */
|
| 37 |
padding: 10px 15px;
|
| 38 |
border-radius: 8px;
|
|
|
|
| 61 |
|
| 62 |
<!-- Items Section -->
|
| 63 |
<div class="section">
|
| 64 |
+
<h3 class="section-title">Order Details:</h3>
|
| 65 |
+
{% if order %}
|
| 66 |
+
<div>
|
| 67 |
+
<pre style="white-space: pre-wrap;">{{ order.Order_Details__c }}</pre>
|
| 68 |
</div>
|
| 69 |
+
{% else %}
|
| 70 |
+
<p>No order details available.</p>
|
| 71 |
+
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
</div>
|
| 73 |
|
| 74 |
<!-- Total Section -->
|
| 75 |
+
{% if order %}
|
| 76 |
<div class="order-summary mt-4">
|
| 77 |
<span>Total: </span>
|
| 78 |
<span class="total-price">${{ order.Total_Amount__c }}</span>
|
| 79 |
</div>
|
| 80 |
+
{% endif %}
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</body>
|