mirror of
				https://github.com/DerTyp7/shop-ejs-expressjs.git
				synced 2025-10-31 05:17:09 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			981 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			981 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
| <head>
 | |
|     <%- include('partials/head'); %>
 | |
|     <link rel="stylesheet" href="/css/order.css">
 | |
| </head>
 | |
| <body>
 | |
|     <%- include('partials/header'); %>
 | |
|     <br>
 | |
|     <h1 class="text-center">Ihre Bestellung</h1>
 | |
|     <p style="width:100%; display:block;"class="error-text text-center"><%- error %></p>
 | |
| 
 | |
|     <div id="order-info">
 | |
|         <p><b>Produktname:</b> <%= product.name %></p>
 | |
|         <p><b>Stückpreis:</b> <%= product.price %> €</p>
 | |
|         <p><b>Anzahl: </b><%= quantity %></p>
 | |
|         <hr>
 | |
|         <p><b>Gesamtpreis:</b> <%= quantity * product.price %> €</p>
 | |
|     </div>
 | |
| 
 | |
|     <!--submit button-->
 | |
|     <form class="order_form" action="/order" method="POST">
 | |
|         <input hidden type="text" name="productId" value="<%= product.id %>">
 | |
|         <input hidden   type="text" name="quantity" value="<%= quantity %>">
 | |
|         <!-- Price is calculated on backend ;) -->
 | |
| 
 | |
|         <input type="submit" value="Bestellen">
 | |
|     </form>
 | |
| 
 | |
| </body>
 | |
| 
 | |
| </html> | 
