File size: 2,908 Bytes
921d328
 
 
 
 
 
e32cb2d
921d328
 
 
e32cb2d
 
921d328
 
 
e32cb2d
 
 
 
 
921d328
e32cb2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
921d328
 
e32cb2d
921d328
 
e32cb2d
 
 
921d328
e32cb2d
 
 
 
 
921d328
 
 
 
 
 
e32cb2d
 
 
 
 
 
 
 
 
 
 
921d328
e32cb2d
 
 
 
 
 
 
 
921d328
 
e32cb2d
 
 
 
921d328
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!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>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f0f2f5; /* Light background */
        }
        .order-container {
            max-width: 768px;
            margin: 40px auto;
            padding: 20px;
            background-color: #ffffff; /* Card background */
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        }
        .order-title {
            font-size: 1.8rem;
            font-weight: bold;
            color: #007bff; /* Blue heading color */
            text-align: center;
            margin-bottom: 20px;
        }
        .section-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #333333; /* Dark text for titles */
            margin-bottom: 10px;
        }
        .order-item, .addon-item {
            background-color: #f8f9fa; /* Light gray background for rows */
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .order-summary {
            margin-top: 20px;
            font-size: 1.2rem;
            font-weight: bold;
            text-align: right;
            color: #333333; /* Dark text */
        }
        .total-price {
            font-size: 1.5rem;
            color: #28a745; /* Green for total price */
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="order-container">
            <h2 class="order-title">Your Order Summary</h2>

            <!-- Items Section -->
            <div class="section">
                <h3 class="section-title">Items:</h3>
                {% for item in order.Order_Items__c.split('\n') %}
                <div class="order-item">
                    <span>{{ item }}</span>
                </div>
                {% endfor %}
            </div>

            <!-- Add-Ons Section -->
            <div class="section mt-4">
                <h3 class="section-title">Add-Ons:</h3>
                {% for addon in order.Add_Ons__c.split('\n') %}
                <div class="addon-item">
                    <span>{{ addon }}</span>
                </div>
                {% endfor %}
            </div>

            <!-- Total Section -->
            <div class="order-summary mt-4">
                <span>Total: </span>
                <span class="total-price">${{ order.Total_Amount__c }}</span>
            </div>
        </div>
    </div>
</body>
</html>