Spaces:
Sleeping
Sleeping
Delete order_history.html
Browse files- order_history.html +0 -83
order_history.html
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Order History</title>
|
7 |
-
<!-- Bootstrap CSS -->
|
8 |
-
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
-
<style>
|
10 |
-
body {
|
11 |
-
font-family: Arial, sans-serif;
|
12 |
-
background-color: #f8f9fa;
|
13 |
-
}
|
14 |
-
.container {
|
15 |
-
max-width: 800px;
|
16 |
-
margin: 40px auto;
|
17 |
-
background-color: white;
|
18 |
-
padding: 20px;
|
19 |
-
border-radius: 10px;
|
20 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
21 |
-
}
|
22 |
-
.order-item {
|
23 |
-
border: 1px solid #ddd;
|
24 |
-
padding: 15px;
|
25 |
-
border-radius: 8px;
|
26 |
-
margin-bottom: 15px;
|
27 |
-
background-color: #fffaf0;
|
28 |
-
}
|
29 |
-
.order-title {
|
30 |
-
font-size: 1.2rem;
|
31 |
-
font-weight: bold;
|
32 |
-
color: #c04e01;
|
33 |
-
}
|
34 |
-
.order-details {
|
35 |
-
font-size: 0.9rem;
|
36 |
-
color: #6c757d;
|
37 |
-
}
|
38 |
-
.total-bill {
|
39 |
-
font-weight: bold;
|
40 |
-
color: #2b9348;
|
41 |
-
}
|
42 |
-
.back-btn {
|
43 |
-
display: block;
|
44 |
-
width: 100%;
|
45 |
-
margin-top: 20px;
|
46 |
-
padding: 10px;
|
47 |
-
background-color: #007bff;
|
48 |
-
color: white;
|
49 |
-
text-align: center;
|
50 |
-
border-radius: 5px;
|
51 |
-
text-decoration: none;
|
52 |
-
font-weight: bold;
|
53 |
-
}
|
54 |
-
.back-btn:hover {
|
55 |
-
background-color: #0056b3;
|
56 |
-
}
|
57 |
-
</style>
|
58 |
-
</head>
|
59 |
-
<body>
|
60 |
-
|
61 |
-
<div class="container">
|
62 |
-
<h3 class="text-center">Your Order History</h3>
|
63 |
-
|
64 |
-
{% if orders %}
|
65 |
-
{% for order in orders %}
|
66 |
-
<div class="order-item">
|
67 |
-
<div class="order-title">Order #{{ order.Id }}</div>
|
68 |
-
<p class="order-details"><strong>Status:</strong> {{ order.Order_Status__c }}</p>
|
69 |
-
<p class="order-details"><strong>Total Amount:</strong> ${{ order.Total_Amount__c }}</p>
|
70 |
-
<p class="order-details"><strong>Discount:</strong> ${{ order.Discount__c }}</p>
|
71 |
-
<p class="total-bill"><strong>Total Bill:</strong> ${{ order.Total_Bill__c }}</p>
|
72 |
-
<p class="order-details"><strong>Order Details:</strong> <br> {{ order.Order_Details__c.replace("\n", "<br>") | safe }}</p>
|
73 |
-
</div>
|
74 |
-
{% endfor %}
|
75 |
-
{% else %}
|
76 |
-
<p class="text-center">No orders found.</p>
|
77 |
-
{% endif %}
|
78 |
-
|
79 |
-
<a href="/menu" class="back-btn">Back to Menu</a>
|
80 |
-
</div>
|
81 |
-
|
82 |
-
</body>
|
83 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|