Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Create cart.html
Browse files- templates/cart.html +26 -0
    	
        templates/cart.html
    ADDED
    
    | @@ -0,0 +1,26 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title>Cart</title>
         | 
| 5 | 
            +
            </head>
         | 
| 6 | 
            +
            <body>
         | 
| 7 | 
            +
                <h1>Biryani Hub - Cart</h1>
         | 
| 8 | 
            +
                <form method="POST" action="/place_order">
         | 
| 9 | 
            +
                    <ul>
         | 
| 10 | 
            +
                        {% for item in cart %}
         | 
| 11 | 
            +
                            <li>{{ item.Name }} - ${{ item.Price }} x {{ item.Quantity }}</li>
         | 
| 12 | 
            +
                        {% endfor %}
         | 
| 13 | 
            +
                    </ul>
         | 
| 14 | 
            +
                    <p>Total: ${{ total }}</p>
         | 
| 15 | 
            +
                    {% if error %}
         | 
| 16 | 
            +
                        <p style="color: red;">{{ error }}</p>
         | 
| 17 | 
            +
                    {% endif %}
         | 
| 18 | 
            +
                    {% if success %}
         | 
| 19 | 
            +
                        <p style="color: green;">{{ success }}</p>
         | 
| 20 | 
            +
                    {% endif %}
         | 
| 21 | 
            +
                    <input type="email" name="email" placeholder="Enter your email" required>
         | 
| 22 | 
            +
                    <button type="submit">Place Order</button>
         | 
| 23 | 
            +
                </form>
         | 
| 24 | 
            +
                <a href="/menu">Back to Menu</a>
         | 
| 25 | 
            +
            </body>
         | 
| 26 | 
            +
            </html>
         | 

