|
|
<!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> |
|
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> |
|
|
<style> |
|
|
body { |
|
|
font-family: 'Arial', sans-serif; |
|
|
background-color: #fdf4e3; |
|
|
color: #333333; |
|
|
margin: 0; |
|
|
padding: 0; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
min-height: 100vh; |
|
|
} |
|
|
|
|
|
.order-container { |
|
|
max-width: 768px; |
|
|
margin: 40px auto; |
|
|
padding: 20px; |
|
|
background-color: #ffffff; |
|
|
border-radius: 15px; |
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); |
|
|
border: 1px solid #ffe5b4; |
|
|
flex-grow: 1; |
|
|
} |
|
|
|
|
|
.order-title { |
|
|
font-size: 2rem; |
|
|
font-weight: bold; |
|
|
color: #c04e01; |
|
|
text-align: center; |
|
|
margin-bottom: 20px; |
|
|
} |
|
|
|
|
|
.section-title { |
|
|
font-size: 1.5rem; |
|
|
font-weight: bold; |
|
|
color: #555555; |
|
|
margin-bottom: 10px; |
|
|
} |
|
|
|
|
|
.order-details { |
|
|
background-color: #fff5e1; |
|
|
border-radius: 10px; |
|
|
padding: 15px; |
|
|
font-size: 1rem; |
|
|
line-height: 1.8; |
|
|
color: #4a4a4a; |
|
|
} |
|
|
|
|
|
.order-item { |
|
|
margin-bottom: 10px; |
|
|
padding: 10px; |
|
|
background-color: #fffcf5; |
|
|
border-radius: 8px; |
|
|
border: 1px solid #ffe5b4; |
|
|
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; |
|
|
} |
|
|
|
|
|
.total-price { |
|
|
font-size: 1.8rem; |
|
|
color: #2b9348; |
|
|
} |
|
|
|
|
|
.back-to-menu { |
|
|
display: block; |
|
|
margin: 30px auto 10px auto; |
|
|
padding: 10px 20px; |
|
|
background-color: #ff5722; |
|
|
color: #ffffff; |
|
|
border: none; |
|
|
border-radius: 25px; |
|
|
font-size: 1rem; |
|
|
font-weight: bold; |
|
|
text-align: center; |
|
|
text-decoration: none; |
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
|
|
transition: background-color 0.3s ease; |
|
|
} |
|
|
|
|
|
.back-to-menu:hover { |
|
|
background-color: #e64a19; |
|
|
text-decoration: none; |
|
|
} |
|
|
|
|
|
footer { |
|
|
background-color: #333333; |
|
|
color: #ffffff; |
|
|
text-align: center; |
|
|
padding: 15px 10px; |
|
|
margin-top: auto; |
|
|
} |
|
|
|
|
|
footer p { |
|
|
margin: 0; |
|
|
font-size: 1rem; |
|
|
} |
|
|
|
|
|
footer p span { |
|
|
color: #ffcc00; |
|
|
font-weight: bold; |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<div class="container"> |
|
|
<div class="order-container"> |
|
|
<h2 class="order-title">Your Order Summary</h2> |
|
|
|
|
|
|
|
|
<div> |
|
|
<h3 class="section-title">Order Details:</h3> |
|
|
{% if order %} |
|
|
<div class="order-details"> |
|
|
{% for line in order.Order_Details__c.split('\n') %} |
|
|
<div class="order-item"> |
|
|
<span>{{ line | safe }}</span> |
|
|
</div> |
|
|
{% endfor %} |
|
|
</div> |
|
|
{% else %} |
|
|
<p>No order details available.</p> |
|
|
{% endif %} |
|
|
</div> |
|
|
|
|
|
|
|
|
{% if order %} |
|
|
<div class="order-summary mt-4"> |
|
|
<span>Total: </span> |
|
|
<span class="total-price">${{ order.Total_Amount__c }}</span> |
|
|
<div class="order-summary mt-4"> |
|
|
<span>Discount: </span> |
|
|
<span class="total-price">${{ order.Discount__c }}</span> |
|
|
</div> |
|
|
<div class="order-summary mt-4"> |
|
|
<span>Total Bill: </span> |
|
|
<span class="total-price">${{ order.Total_Bill__c }}</span> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<a href="/menu" class="back-to-menu">Back to Menu</a> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<footer> |
|
|
<p>Thank you for dining with us! <span>We look forward to serving you again.</span></p> |
|
|
</footer> |
|
|
</body> |
|
|
</html> |
|
|
|