Spaces:
Sleeping
Sleeping
Delete templates/previous_orders.html
Browse files- templates/previous_orders.html +0 -127
templates/previous_orders.html
DELETED
|
@@ -1,127 +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>Previous Orders</title>
|
| 7 |
-
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
-
<style>
|
| 9 |
-
body {
|
| 10 |
-
font-family: 'Arial', sans-serif;
|
| 11 |
-
background-color: #fdf4e3;
|
| 12 |
-
color: #333333;
|
| 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 6px 20px rgba(0, 0, 0, 0.1);
|
| 21 |
-
}
|
| 22 |
-
.cart-item {
|
| 23 |
-
display: flex;
|
| 24 |
-
align-items: center;
|
| 25 |
-
justify-content: space-between;
|
| 26 |
-
background-color: #fffcf5;
|
| 27 |
-
border-radius: 8px;
|
| 28 |
-
border: 1px solid #ffe5b4;
|
| 29 |
-
padding: 10px;
|
| 30 |
-
margin-bottom: 10px;
|
| 31 |
-
}
|
| 32 |
-
.cart-item img {
|
| 33 |
-
width: 70px;
|
| 34 |
-
height: 70px;
|
| 35 |
-
object-fit: cover;
|
| 36 |
-
border-radius: 5px;
|
| 37 |
-
border: 1px solid #ffcc80;
|
| 38 |
-
}
|
| 39 |
-
.cart-item-details {
|
| 40 |
-
flex: 1;
|
| 41 |
-
margin-left: 15px;
|
| 42 |
-
}
|
| 43 |
-
.cart-item-title {
|
| 44 |
-
font-size: 1.2rem;
|
| 45 |
-
font-weight: bold;
|
| 46 |
-
color: #c04e01;
|
| 47 |
-
}
|
| 48 |
-
.cart-item-addons,
|
| 49 |
-
.cart-item-instructions {
|
| 50 |
-
font-size: 0.9rem;
|
| 51 |
-
color: #6c757d;
|
| 52 |
-
}
|
| 53 |
-
.order-summary {
|
| 54 |
-
text-align: right;
|
| 55 |
-
margin-top: 15px;
|
| 56 |
-
}
|
| 57 |
-
.total-price {
|
| 58 |
-
font-size: 1.5rem;
|
| 59 |
-
font-weight: bold;
|
| 60 |
-
color: #2b9348;
|
| 61 |
-
}
|
| 62 |
-
.back-to-menu {
|
| 63 |
-
display: block;
|
| 64 |
-
margin: 30px auto 10px auto;
|
| 65 |
-
padding: 10px 20px;
|
| 66 |
-
background-color: #ff5722;
|
| 67 |
-
color: #ffffff;
|
| 68 |
-
border: none;
|
| 69 |
-
border-radius: 25px;
|
| 70 |
-
font-size: 1rem;
|
| 71 |
-
font-weight: bold;
|
| 72 |
-
text-align: center;
|
| 73 |
-
text-decoration: none;
|
| 74 |
-
width: 100%;
|
| 75 |
-
}
|
| 76 |
-
footer {
|
| 77 |
-
background-color: #333333;
|
| 78 |
-
color: #ffffff;
|
| 79 |
-
text-align: center;
|
| 80 |
-
padding: 15px 10px;
|
| 81 |
-
margin-top: auto;
|
| 82 |
-
}
|
| 83 |
-
</style>
|
| 84 |
-
</head>
|
| 85 |
-
<body>
|
| 86 |
-
<div class="container">
|
| 87 |
-
<div class="order-container">
|
| 88 |
-
<h4 class="mb-4 text-center">Your Previous Orders</h4>
|
| 89 |
-
|
| 90 |
-
{% if orders %}
|
| 91 |
-
{% for order in orders %}
|
| 92 |
-
<div class="order-items">
|
| 93 |
-
<h5 class="text-center">Order Date: {{ order.order_date }}</h5>
|
| 94 |
-
{% for item in order.items %}
|
| 95 |
-
<div class="cart-item">
|
| 96 |
-
<!-- Item Image -->
|
| 97 |
-
<img src="{{ item.image }}" alt="{{ item.name }}" onerror="this.src='/static/placeholder.jpg';">
|
| 98 |
-
|
| 99 |
-
<!-- Item Details -->
|
| 100 |
-
<div class="cart-item-details">
|
| 101 |
-
<div class="cart-item-title">{{ item.name }}</div>
|
| 102 |
-
<div class="cart-item-addons">Add-ons: {{ item.addons }}</div>
|
| 103 |
-
<div class="cart-item-instructions">Instructions: {{ item.instructions }}</div>
|
| 104 |
-
</div>
|
| 105 |
-
|
| 106 |
-
<!-- Price -->
|
| 107 |
-
<div class="cart-item-actions">
|
| 108 |
-
<strong>{{ item.price }}</strong>
|
| 109 |
-
</div>
|
| 110 |
-
</div>
|
| 111 |
-
{% endfor %}
|
| 112 |
-
</div>
|
| 113 |
-
{% endfor %}
|
| 114 |
-
{% else %}
|
| 115 |
-
<p class="text-center">No previous orders found.</p>
|
| 116 |
-
{% endif %}
|
| 117 |
-
|
| 118 |
-
<!-- Back to Menu Button -->
|
| 119 |
-
<a href="/menu" class="back-to-menu">Back to Menu</a>
|
| 120 |
-
</div>
|
| 121 |
-
</div>
|
| 122 |
-
|
| 123 |
-
<footer>
|
| 124 |
-
<p>Thank you for dining with us! <span>We look forward to serving you again.</span></p>
|
| 125 |
-
</footer>
|
| 126 |
-
</body>
|
| 127 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|