voicemenu1433 / templates /order_summary.html
lokesh341's picture
Update templates/order_summary.html
14d122f verified
<!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>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: 50px auto;
}
h1 {
text-align: center;
color: #333;
}
.summary-item {
background-color: #fff;
padding: 20px;
margin: 10px 0;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.item-name {
font-size: 1.5em;
color: #4CAF50;
}
.item-price {
font-size: 1.2em;
font-weight: bold;
color: #000;
}
.total-price {
font-size: 1.5em;
font-weight: bold;
color: #333;
margin-top: 20px;
}
.btn-confirm {
padding: 12px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
display: block;
margin-top: 20px;
text-align: center;
}
.btn-confirm:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>Order Summary</h1>
<div id="order-summary">
{% for item in order_details %}
<div class="summary-item">
<div class="item-name">{{ item.name }}</div>
<div class="item-price">$ {{ item.price }} x {{ item.quantity }}</div>
</div>
{% endfor %}
<div class="total-price">
Total: $ {{ total_price }}
</div>
</div>
<a href="/final_order" class="btn-confirm">Confirm Order</a>
</div>
</body>
</html>