nagasurendra's picture
Update templates/order.html
2a1077d verified
raw
history blame
2.67 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Order Summary</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f0f2f5; /* Light background */
}
.order-container {
max-width: 768px;
margin: 40px auto;
padding: 20px;
background-color: #ffffff; /* Card background */
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.order-title {
font-size: 1.8rem;
font-weight: bold;
color: #007bff; /* Blue heading color */
text-align: center;
margin-bottom: 20px;
}
.section-title {
font-size: 1.2rem;
font-weight: bold;
color: #333333; /* Dark text for titles */
margin-bottom: 10px;
}
.order-item {
background-color: #f8f9fa; /* Light gray background for rows */
padding: 10px 15px;
border-radius: 8px;
margin-bottom: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.order-summary {
margin-top: 20px;
font-size: 1.2rem;
font-weight: bold;
text-align: right;
color: #333333; /* Dark text */
}
.total-price {
font-size: 1.5rem;
color: #28a745; /* Green for total price */
}
</style>
</head>
<body>
<div class="container">
<div class="order-container">
<h2 class="order-title">Your Order Summary</h2>
<!-- Items Section -->
<div class="section">
<h3 class="section-title">Order Details:</h3>
{% if order %}
<div>
<pre style="white-space: pre-wrap;">{{ order.Order_Details__c }}</pre>
</div>
{% else %}
<p>No order details available.</p>
{% endif %}
</div>
<!-- Total Section -->
{% if order %}
<div class="order-summary mt-4">
<span>Total: </span>
<span class="total-price">${{ order.Total_Amount__c }}</span>
</div>
{% endif %}
</div>
</div>
</body>
</html>