added fixed footer

This commit is contained in:
Janis M
2022-03-30 14:09:08 +02:00
parent 7caeedb45e
commit e0e28209c6
8 changed files with 39 additions and 32 deletions

View File

@@ -6,27 +6,29 @@
</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.toFixed(2) %> €</p>
<p><b>Anzahl: </b><%= quantity %></p>
<hr>
<p><b>Gesamtpreis:</b> <%= (quantity * product.price).toFixed(2) %> €</p>
<div class="content">
<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.toFixed(2) %> €</p>
<p><b>Anzahl: </b><%= quantity %></p>
<hr>
<p><b>Gesamtpreis:</b> <%= (quantity * product.price).toFixed(2) %> €</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>
</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>
<%- include('partials/footer'); %>
</body>
</html>