Spaces:
Runtime error
Runtime error
Update templates/order.html
Browse files- templates/order.html +29 -19
templates/order.html
CHANGED
|
@@ -9,48 +9,54 @@
|
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
font-family: 'Arial', sans-serif;
|
| 12 |
-
background-color: #
|
| 13 |
}
|
| 14 |
.order-container {
|
| 15 |
max-width: 768px;
|
| 16 |
margin: 40px auto;
|
| 17 |
padding: 20px;
|
| 18 |
-
background-color: #ffffff; /*
|
| 19 |
border-radius: 15px;
|
| 20 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
|
| 21 |
}
|
| 22 |
.order-title {
|
| 23 |
-
font-size:
|
| 24 |
font-weight: bold;
|
| 25 |
-
color: #007bff; /*
|
| 26 |
text-align: center;
|
| 27 |
margin-bottom: 20px;
|
| 28 |
}
|
| 29 |
.section-title {
|
| 30 |
-
font-size: 1.
|
| 31 |
font-weight: bold;
|
| 32 |
-
color: #333333; /* Dark
|
| 33 |
margin-bottom: 10px;
|
| 34 |
}
|
| 35 |
-
.order-
|
| 36 |
-
background-color: #f8f9fa; /* Light gray
|
| 37 |
-
padding: 10px 15px;
|
| 38 |
border-radius: 8px;
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
.order-summary {
|
| 45 |
margin-top: 20px;
|
| 46 |
font-size: 1.2rem;
|
| 47 |
font-weight: bold;
|
| 48 |
text-align: right;
|
| 49 |
-
color: #333333; /* Dark
|
| 50 |
}
|
| 51 |
.total-price {
|
| 52 |
-
font-size: 1.
|
| 53 |
-
color: #28a745; /*
|
| 54 |
}
|
| 55 |
</style>
|
| 56 |
</head>
|
|
@@ -60,11 +66,15 @@
|
|
| 60 |
<h2 class="order-title">Your Order Summary</h2>
|
| 61 |
|
| 62 |
<!-- Items Section -->
|
| 63 |
-
<div
|
| 64 |
<h3 class="section-title">Order Details:</h3>
|
| 65 |
{% if order %}
|
| 66 |
-
<div>
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
</div>
|
| 69 |
{% else %}
|
| 70 |
<p>No order details available.</p>
|
|
|
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
font-family: 'Arial', sans-serif;
|
| 12 |
+
background-color: #f7f9fc; /* Light blue-gray background */
|
| 13 |
}
|
| 14 |
.order-container {
|
| 15 |
max-width: 768px;
|
| 16 |
margin: 40px auto;
|
| 17 |
padding: 20px;
|
| 18 |
+
background-color: #ffffff; /* White card background */
|
| 19 |
border-radius: 15px;
|
| 20 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
|
| 21 |
}
|
| 22 |
.order-title {
|
| 23 |
+
font-size: 2rem;
|
| 24 |
font-weight: bold;
|
| 25 |
+
color: #007bff; /* Bright blue */
|
| 26 |
text-align: center;
|
| 27 |
margin-bottom: 20px;
|
| 28 |
}
|
| 29 |
.section-title {
|
| 30 |
+
font-size: 1.5rem;
|
| 31 |
font-weight: bold;
|
| 32 |
+
color: #333333; /* Dark gray */
|
| 33 |
margin-bottom: 10px;
|
| 34 |
}
|
| 35 |
+
.order-details {
|
| 36 |
+
background-color: #f8f9fa; /* Light gray for the order details section */
|
|
|
|
| 37 |
border-radius: 8px;
|
| 38 |
+
padding: 15px;
|
| 39 |
+
font-size: 1rem;
|
| 40 |
+
line-height: 1.8;
|
| 41 |
+
color: #555555; /* Medium gray text */
|
| 42 |
+
}
|
| 43 |
+
.order-item {
|
| 44 |
+
margin-bottom: 10px;
|
| 45 |
+
}
|
| 46 |
+
.highlight {
|
| 47 |
+
color: #ff5722; /* Bright orange for key details */
|
| 48 |
+
font-weight: bold;
|
| 49 |
}
|
| 50 |
.order-summary {
|
| 51 |
margin-top: 20px;
|
| 52 |
font-size: 1.2rem;
|
| 53 |
font-weight: bold;
|
| 54 |
text-align: right;
|
| 55 |
+
color: #333333; /* Dark gray */
|
| 56 |
}
|
| 57 |
.total-price {
|
| 58 |
+
font-size: 1.8rem;
|
| 59 |
+
color: #28a745; /* Bright green for total price */
|
| 60 |
}
|
| 61 |
</style>
|
| 62 |
</head>
|
|
|
|
| 66 |
<h2 class="order-title">Your Order Summary</h2>
|
| 67 |
|
| 68 |
<!-- Items Section -->
|
| 69 |
+
<div>
|
| 70 |
<h3 class="section-title">Order Details:</h3>
|
| 71 |
{% if order %}
|
| 72 |
+
<div class="order-details">
|
| 73 |
+
{% for line in order.Order_Details__c.split('\n') %}
|
| 74 |
+
<div class="order-item">
|
| 75 |
+
{{ line | safe }}
|
| 76 |
+
</div>
|
| 77 |
+
{% endfor %}
|
| 78 |
</div>
|
| 79 |
{% else %}
|
| 80 |
<p>No order details available.</p>
|