Spaces:
Sleeping
Sleeping
Update templates/order.html
Browse files- templates/order.html +22 -23
templates/order.html
CHANGED
@@ -4,13 +4,12 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Order Summary</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: #fdf4e3;
|
13 |
-
color: #333333;
|
14 |
margin: 0;
|
15 |
padding: 0;
|
16 |
display: flex;
|
@@ -22,17 +21,17 @@
|
|
22 |
max-width: 768px;
|
23 |
margin: 40px auto;
|
24 |
padding: 20px;
|
25 |
-
background-color: #ffffff;
|
26 |
border-radius: 15px;
|
27 |
-
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
|
28 |
-
border: 1px solid #ffe5b4;
|
29 |
flex-grow: 1;
|
30 |
}
|
31 |
|
32 |
.order-title {
|
33 |
font-size: 2rem;
|
34 |
font-weight: bold;
|
35 |
-
color: #c04e01;
|
36 |
text-align: center;
|
37 |
margin-bottom: 20px;
|
38 |
}
|
@@ -40,25 +39,25 @@
|
|
40 |
.section-title {
|
41 |
font-size: 1.5rem;
|
42 |
font-weight: bold;
|
43 |
-
color: #555555;
|
44 |
margin-bottom: 10px;
|
45 |
}
|
46 |
|
47 |
.order-details {
|
48 |
-
background-color: #fff5e1;
|
49 |
border-radius: 10px;
|
50 |
padding: 15px;
|
51 |
font-size: 1rem;
|
52 |
line-height: 1.8;
|
53 |
-
color: #4a4a4a;
|
54 |
}
|
55 |
|
56 |
.order-item {
|
57 |
margin-bottom: 10px;
|
58 |
padding: 10px;
|
59 |
-
background-color: #fffcf5;
|
60 |
border-radius: 8px;
|
61 |
-
border: 1px solid #ffe5b4;
|
62 |
display: flex;
|
63 |
justify-content: space-between;
|
64 |
align-items: center;
|
@@ -69,38 +68,38 @@
|
|
69 |
font-size: 1.2rem;
|
70 |
font-weight: bold;
|
71 |
text-align: right;
|
72 |
-
color: #333333;
|
73 |
}
|
74 |
|
75 |
.total-price {
|
76 |
font-size: 1.8rem;
|
77 |
-
color: #2b9348;
|
78 |
}
|
79 |
|
80 |
.back-to-menu {
|
81 |
display: block;
|
82 |
margin: 30px auto 10px auto;
|
83 |
padding: 10px 20px;
|
84 |
-
background-color: #ff5722;
|
85 |
-
color: #ffffff;
|
86 |
border: none;
|
87 |
border-radius: 25px;
|
88 |
font-size: 1rem;
|
89 |
font-weight: bold;
|
90 |
text-align: center;
|
91 |
text-decoration: none;
|
92 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
93 |
transition: background-color 0.3s ease;
|
94 |
}
|
95 |
|
96 |
.back-to-menu:hover {
|
97 |
-
background-color: #e64a19;
|
98 |
text-decoration: none;
|
99 |
}
|
100 |
|
101 |
footer {
|
102 |
-
background-color: #333333;
|
103 |
-
color: #ffffff;
|
104 |
text-align: center;
|
105 |
padding: 15px 10px;
|
106 |
margin-top: auto;
|
@@ -112,7 +111,7 @@
|
|
112 |
}
|
113 |
|
114 |
footer p span {
|
115 |
-
color: #ffcc00;
|
116 |
font-weight: bold;
|
117 |
}
|
118 |
</style>
|
@@ -141,8 +140,8 @@
|
|
141 |
<!-- Total Section -->
|
142 |
{% if order %}
|
143 |
<div class="order-summary mt-4">
|
144 |
-
<span>Total: </span>
|
145 |
-
<span class="total-price">${{
|
146 |
</div>
|
147 |
{% endif %}
|
148 |
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Order Summary</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 |
margin: 0;
|
14 |
padding: 0;
|
15 |
display: flex;
|
|
|
21 |
max-width: 768px;
|
22 |
margin: 40px auto;
|
23 |
padding: 20px;
|
24 |
+
background-color: #ffffff;
|
25 |
border-radius: 15px;
|
26 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
|
27 |
+
border: 1px solid #ffe5b4;
|
28 |
flex-grow: 1;
|
29 |
}
|
30 |
|
31 |
.order-title {
|
32 |
font-size: 2rem;
|
33 |
font-weight: bold;
|
34 |
+
color: #c04e01;
|
35 |
text-align: center;
|
36 |
margin-bottom: 20px;
|
37 |
}
|
|
|
39 |
.section-title {
|
40 |
font-size: 1.5rem;
|
41 |
font-weight: bold;
|
42 |
+
color: #555555;
|
43 |
margin-bottom: 10px;
|
44 |
}
|
45 |
|
46 |
.order-details {
|
47 |
+
background-color: #fff5e1;
|
48 |
border-radius: 10px;
|
49 |
padding: 15px;
|
50 |
font-size: 1rem;
|
51 |
line-height: 1.8;
|
52 |
+
color: #4a4a4a;
|
53 |
}
|
54 |
|
55 |
.order-item {
|
56 |
margin-bottom: 10px;
|
57 |
padding: 10px;
|
58 |
+
background-color: #fffcf5;
|
59 |
border-radius: 8px;
|
60 |
+
border: 1px solid #ffe5b4;
|
61 |
display: flex;
|
62 |
justify-content: space-between;
|
63 |
align-items: center;
|
|
|
68 |
font-size: 1.2rem;
|
69 |
font-weight: bold;
|
70 |
text-align: right;
|
71 |
+
color: #333333;
|
72 |
}
|
73 |
|
74 |
.total-price {
|
75 |
font-size: 1.8rem;
|
76 |
+
color: #2b9348;
|
77 |
}
|
78 |
|
79 |
.back-to-menu {
|
80 |
display: block;
|
81 |
margin: 30px auto 10px auto;
|
82 |
padding: 10px 20px;
|
83 |
+
background-color: #ff5722;
|
84 |
+
color: #ffffff;
|
85 |
border: none;
|
86 |
border-radius: 25px;
|
87 |
font-size: 1rem;
|
88 |
font-weight: bold;
|
89 |
text-align: center;
|
90 |
text-decoration: none;
|
91 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
92 |
transition: background-color 0.3s ease;
|
93 |
}
|
94 |
|
95 |
.back-to-menu:hover {
|
96 |
+
background-color: #e64a19;
|
97 |
text-decoration: none;
|
98 |
}
|
99 |
|
100 |
footer {
|
101 |
+
background-color: #333333;
|
102 |
+
color: #ffffff;
|
103 |
text-align: center;
|
104 |
padding: 15px 10px;
|
105 |
margin-top: auto;
|
|
|
111 |
}
|
112 |
|
113 |
footer p span {
|
114 |
+
color: #ffcc00;
|
115 |
font-weight: bold;
|
116 |
}
|
117 |
</style>
|
|
|
140 |
<!-- Total Section -->
|
141 |
{% if order %}
|
142 |
<div class="order-summary mt-4">
|
143 |
+
<span>Total (after discount): </span>
|
144 |
+
<span class="total-price">${{ final_total }}</span> <!-- Final total with discount -->
|
145 |
</div>
|
146 |
{% endif %}
|
147 |
|