This repository has been archived on 2020-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
e-commerce/prototype/src/main/resources/templates/shop/checkout.html

183 lines
6.8 KiB
HTML
Raw Normal View History

2020-01-25 16:12:53 +01:00
<!DOCTYPE html>
<html lang="de" dir="ltr" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
2020-01-25 16:41:11 +01:00
<title>Checkout</title>
2020-01-25 16:12:53 +01:00
<link rel="stylesheet" th:href="@{/css/ecom.css}" />
<link rel="stylesheet" th:href="@{/css/listedArticles.css}" />
<script th:src="@{/js/filterTable.js}"></script>
</head>
<body>
<nav th:replace="fragments/header :: header">Header</nav>
2020-01-25 16:12:53 +01:00
<div class="sidebar-layout content-width">
<div>
<h1>Warenkorb</h1>
<script th:src="@{/js/back.js}"></script>
<p class="back" data-group="shop" data-insert="true"></p>
2020-01-25 16:12:53 +01:00
</div>
<nav></nav>
</div>
2020-03-06 15:19:56 +01:00
<main class="content-width sidebar-layout" style="min-height: 100vh;">
<div style="max-width: 45em; width: 100%;">
2020-01-25 16:12:53 +01:00
<table>
<tr>
<th>Bild</th>
<th>Name</th>
<th>Preis (Brutto)</th>
<th>Menge</th>
<th></th>
</tr>
<tr>
2020-01-26 13:55:23 +01:00
<td><a th:href="@{/shop/articles/4151}"><img th:src="@{/img/product-1.jpg}" class="s" /><a /></td>
<td><a th:href="@{/shop/articles/4151}">Kamera<a /></td>
2020-02-04 21:32:19 +01:00
<td>100,50&nbsp;EUR</td>
2020-01-25 16:12:53 +01:00
<td>
<select size="1">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
<td>
<button class="small">Entfernen</button>
</td>
</tr>
<tr>
2020-01-26 13:55:23 +01:00
<td><a th:href="@{/shop/articles/4151}"><img th:src="@{/img/product-2.jpg}" class="s" /><a /></td>
<td><a th:href="@{/shop/articles/4151}">Earbuds<a /></td>
2020-02-04 21:32:19 +01:00
<td>63,95&nbsp;EUR</td>
2020-01-25 16:12:53 +01:00
<td>
<select size="1">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
<td>
<button>Entfernen</button>
</td>
</tr>
<tr>
2020-01-26 13:55:23 +01:00
<td><a th:href="@{/shop/articles/4151}"><img th:src="@{/img/product-3.jpg}" class="s" /><a /></td>
<td><a th:href="@{/shop/articles/4151}">USB-Magic Light<a /></td>
2020-02-04 21:32:19 +01:00
<td>11,90&nbsp;EUR</td>
2020-01-25 16:12:53 +01:00
<td>
<select size="1">
<option value="1">1</option>
<option value="2" selected>2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
<td>
<button>Entfernen</button>
</td>
</tr>
<tr>
2020-01-26 13:55:23 +01:00
<td><a th:href="@{/shop/articles/4151}"><img th:src="@{/img/product-4.jpg}" class="s" /><a /></td>
<td><a th:href="@{/shop/articles/4151}">3D Magic Stativ<a /></td>
2020-02-04 21:32:19 +01:00
<td>15,99&nbsp;EUR</td>
2020-01-25 16:12:53 +01:00
<td>
<select size="1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5" selected>5</option>
</select>
</td>
<td>
<button>Entfernen</button>
</td>
</tr>
<tr>
2020-01-26 13:55:23 +01:00
<td><a th:href="@{/shop/articles/4151}"><img th:src="@{/img/product-5.jpg}" class="s" /><a /></td>
<td><a th:href="@{/shop/articles/4151}">Ersatzfernbedinung<a /></td>
2020-02-04 21:32:19 +01:00
<td>7,95&nbsp;EUR</td>
2020-01-25 16:12:53 +01:00
<td>
<select size="1">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
<td>
<button>Entfernen</button>
</td>
</tr>
</table>
</div>
2020-03-06 15:19:56 +01:00
<form method="POST" th:action="@{/shop/checkoutFinish}" style="min-width: 30em; max-width: 45em;">
2020-01-25 16:12:53 +01:00
<div class="detailflex hero">
<div>
<h1>Checkout</h1>
</div>
<div>
<h2>Lieferadresse:</h2>
<textarea rows="5" class="full-width" type="text" name="address" placeholder="Optional: Zusatz&#10;Optional: Unternehmen&#10;Straße Hausnummer&#10;Postleitzeit Ort&#10;Land">
Max Mustermann
Musterstraße 42
42424 Mustertal
</textarea>
</div>
<div>
<h2>Zahlung:</h2>
<fieldset>
2020-01-26 13:55:23 +01:00
<input type="radio" name="type" value="priv" id="payment-card" required checked>
2020-01-25 16:12:53 +01:00
<label for="payment-card">Kartenzahlung</label> <br />
<input class="full-width" type="text" id="cardnumber" name="cardnumber" placeholder="Kartennummer" required />
</fieldset>
2020-01-26 13:55:23 +01:00
<fieldset>
<input class="" type="checkbox" id="bonus" name="bonus" checked/>
<label for="bonus"><h3>10 gesammelte Bonuspunkte verwenden</h3></label>
</fieldset>
2020-01-25 16:12:53 +01:00
</div>
<div>
<h2>Bestellübersicht</h2>
<!-- Dirty TODO: -->
<table>
<tr>
<th>Artikel (Netto)</th>
2020-02-04 21:32:19 +01:00
<th>200,29&nbsp;EUR</th>
2020-01-25 16:12:53 +01:00
</tr>
2020-01-26 13:55:23 +01:00
<tr>
<th>Bonuspunkte</th>
2020-02-04 21:32:19 +01:00
<th>-5,00&nbsp;EUR</th>
2020-01-26 13:55:23 +01:00
</tr>
2020-01-25 16:12:53 +01:00
<tr>
<th>Umsatzsteuer (19%)</th>
2020-02-04 21:32:19 +01:00
<th>35,00&nbsp;EUR</th>
2020-01-25 16:12:53 +01:00
</tr>
<tr>
<th>Umsatzsteuer (7%)</th>
2020-02-04 21:32:19 +01:00
<th>2,50&nbsp;EUR</th>
2020-01-25 16:12:53 +01:00
</tr>
<tr class="secondary">
<th>Gesamt:</th>
2020-02-04 21:32:19 +01:00
<th>240,79&nbsp;EUR</th>
2020-01-25 16:12:53 +01:00
</tr>
<tr class="secondary">
<th colspan="2" class=" no-padding"><button class=" no-margin secondary full-width">jetzt kostenpflichtig bestellen</button></th>
</tr>
</table>
</div>
</div>
</form>
</main>
<footer th:replace="fragments/footer :: footer"></footer>
2020-01-25 16:12:53 +01:00
</body>
2020-01-26 13:55:23 +01:00
2020-01-25 16:12:53 +01:00
</html>