lokesh341 commited on
Commit
ac1d01f
·
verified ·
1 Parent(s): e47a353

Create order_summary.html

Browse files
Files changed (1) hide show
  1. templates/order_summary.html +83 -0
templates/order_summary.html ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Summary</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ background-color: #f4f4f4;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ .container {
15
+ width: 80%;
16
+ margin: 50px auto;
17
+ }
18
+ h1 {
19
+ text-align: center;
20
+ color: #333;
21
+ }
22
+ .summary-item {
23
+ background-color: #fff;
24
+ padding: 20px;
25
+ margin: 10px 0;
26
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
27
+ border-radius: 8px;
28
+ }
29
+ .item-name {
30
+ font-size: 1.5em;
31
+ color: #4CAF50;
32
+ }
33
+ .item-price {
34
+ font-size: 1.2em;
35
+ font-weight: bold;
36
+ color: #000;
37
+ }
38
+ .total-price {
39
+ font-size: 1.5em;
40
+ font-weight: bold;
41
+ color: #333;
42
+ margin-top: 20px;
43
+ }
44
+ .btn-confirm {
45
+ padding: 10px;
46
+ background-color: #4CAF50;
47
+ color: white;
48
+ border: none;
49
+ border-radius: 4px;
50
+ cursor: pointer;
51
+ text-decoration: none;
52
+ display: block;
53
+ width: 100%;
54
+ margin-top: 20px;
55
+ }
56
+ .btn-confirm:hover {
57
+ background-color: #45a049;
58
+ }
59
+ </style>
60
+ </head>
61
+ <body>
62
+
63
+ <div class="container">
64
+ <h1>Order Summary</h1>
65
+
66
+ <div id="order-summary">
67
+ {% for item in order_details %}
68
+ <div class="summary-item">
69
+ <div class="item-name">{{ item.name }}</div>
70
+ <div class="item-price">$ {{ item.price }} x {{ item.quantity }}</div>
71
+ </div>
72
+ {% endfor %}
73
+
74
+ <div class="total-price">
75
+ Total: $ {{ total_price }}
76
+ </div>
77
+ </div>
78
+
79
+ <a href="/final_order" class="btn-confirm">Confirm Order</a>
80
+ </div>
81
+
82
+ </body>
83
+ </html>