Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Create order.html
Browse files- templates/order.html +59 -0
    	
        templates/order.html
    ADDED
    
    | @@ -0,0 +1,59 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 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 | 
            +
                <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: #f8f9fa;
         | 
| 12 | 
            +
                    }
         | 
| 13 | 
            +
                    .order-container {
         | 
| 14 | 
            +
                        max-width: 768px;
         | 
| 15 | 
            +
                        margin: 20px auto;
         | 
| 16 | 
            +
                        padding: 15px;
         | 
| 17 | 
            +
                        background-color: #fff;
         | 
| 18 | 
            +
                        border-radius: 10px;
         | 
| 19 | 
            +
                        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
         | 
| 20 | 
            +
                    }
         | 
| 21 | 
            +
                    .order-item {
         | 
| 22 | 
            +
                        display: flex;
         | 
| 23 | 
            +
                        align-items: center;
         | 
| 24 | 
            +
                        justify-content: space-between;
         | 
| 25 | 
            +
                        border-bottom: 1px solid #dee2e6;
         | 
| 26 | 
            +
                        padding: 10px 0;
         | 
| 27 | 
            +
                    }
         | 
| 28 | 
            +
                    .order-summary {
         | 
| 29 | 
            +
                        text-align: right;
         | 
| 30 | 
            +
                        margin-top: 15px;
         | 
| 31 | 
            +
                    }
         | 
| 32 | 
            +
                </style>
         | 
| 33 | 
            +
            </head>
         | 
| 34 | 
            +
            <body>
         | 
| 35 | 
            +
                <div class="container">
         | 
| 36 | 
            +
                    <div class="order-container">
         | 
| 37 | 
            +
                        <h4 class="mb-4">Order Summary</h4>
         | 
| 38 | 
            +
             | 
| 39 | 
            +
                        <!-- Order Items -->
         | 
| 40 | 
            +
                        {% if order %}
         | 
| 41 | 
            +
                        <p><strong>Order Status:</strong> {{ order.Order_Status__c }}</p>
         | 
| 42 | 
            +
                        <div>
         | 
| 43 | 
            +
                            <h5>Items:</h5>
         | 
| 44 | 
            +
                            <p>{{ order.Order_Items__c.replace('\n', '<br>')|safe }}</p>
         | 
| 45 | 
            +
                            <h5>Add-Ons:</h5>
         | 
| 46 | 
            +
                            <p>{{ order.Add_Ons__c.replace('\n', '<br>')|safe }}</p>
         | 
| 47 | 
            +
                        </div>
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                        <!-- Total -->
         | 
| 50 | 
            +
                        <div class="order-summary">
         | 
| 51 | 
            +
                            <p class="fw-bold">Total: ${{ order.Total_Amount__c }}</p>
         | 
| 52 | 
            +
                        </div>
         | 
| 53 | 
            +
                        {% else %}
         | 
| 54 | 
            +
                        <p>No order summary available.</p>
         | 
| 55 | 
            +
                        {% endif %}
         | 
| 56 | 
            +
                    </div>
         | 
| 57 | 
            +
                </div>
         | 
| 58 | 
            +
            </body>
         | 
| 59 | 
            +
            </html>
         |