2020-01-25 20:30:26 +01:00
<!DOCTYPE html>
< html lang = "de" dir = "ltr" xmlns:th = "http://www.thymeleaf.org" >
< head >
2020-04-27 09:48:24 +02:00
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=0.75, user-scalable=no" >
2020-01-25 20:30:26 +01:00
2020-04-27 09:48:24 +02:00
< title > Meine Bestellungen< / title >
< link rel = "stylesheet" th:href = "@{/css/ecom.css}" / >
2020-01-25 20:30:26 +01:00
< / head >
< body >
2020-04-27 09:48:24 +02:00
< nav th:replace = "fragments/header :: header" > Header< / nav >
2020-01-25 20:30:26 +01:00
2020-04-27 09:48:24 +02:00
< div class = "sidebar-layout content-width" >
< nav > < / nav >
< div >
< h1 > Meine Bestellungen< / h1 >
< / div >
< / div >
< main class = "sidebar-layout content-width" >
< nav th:replace = "fragments/customer :: sidebar" > < / nav >
< div class = "content-width detailflex" >
2020-06-13 21:59:18 +02:00
< div th:each = "order: ${orderDeliveryDataMap}" >
< h2 id = "20202701" th:text = "|Bestellung vom ${order.getKey().formatCreated()}" / >
2020-01-25 20:30:26 +01:00
< div >
2020-04-27 09:48:24 +02:00
< table class = "key-value" >
< tr >
< th > Lieferstatus< / th >
2020-06-13 21:59:18 +02:00
< td th:text = "${order.getValue().getStatus()}" > < / td >
< / tr >
< tr >
< td > < / td >
< td th:if = "${order.getKey().deliveredAt == null && order.getKey().trackingId!=null}" > Vorraussichtliche Ankunft: < span th:text = "${order.getValue().getEstimatedArrival()}" / > < / td >
< td th:if = "${order.getKey().deliveredAt != null && order.getKey().trackingId!=null}" > < b > Angekommen< / b > Ankunft: < span th:text = "${order.getValue().getEstimatedArrival()}" / > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > Sendeverfolgungsnummer< / th >
2020-06-13 21:59:18 +02:00
< td th:text = "${order.getKey().trackingId!=null} ? ${order.getKey().trackingId} : 'Es wurde noch keine Sendungsnummer vergeben'" > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > < / th >
2020-06-13 21:59:18 +02:00
< td th:text = "${order.getKey().destination.toString()}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< / table >
2020-01-25 20:30:26 +01:00
< / div >
< table >
2020-04-27 09:48:24 +02:00
< tr >
< th > Bild< / th >
< th > Name< / th >
< th > Menge< / th >
< th > Preis (Brutto)< / th >
< / tr >
2020-06-13 21:59:18 +02:00
< tr th:each = "position: ${order.getKey().positions}" >
2020-05-19 11:52:41 +02:00
< td > < a th:href = "@{/shop/articles/{id}(id = ${position.article.id})}" > < img th:src = "@{/shop/articles/{id}/image.jpg(id=${position.article.id})}" class = "s" / > < / a > < / td >
< td > < a th:href = "@{/shop/articles/{id}(id = ${position.article.id})}" th:text = "${position.article.title}" class = "s" > < / a > < / td >
< td th:text = "${position.quantity}" / >
< td th:text = "${#numbers.formatDecimal(position.getSumPrice() * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > < / th >
< th > < / th >
< th > Position< / th >
< th > Preis< / th >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td > Artikel (Netto)< / td >
2020-06-13 21:59:18 +02:00
< td th:text = "${#numbers.formatDecimal(order.getKey().totalNetCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
2020-05-19 11:52:41 +02:00
< td > Umsatzsteuer< / td >
2020-06-13 21:59:18 +02:00
< td th:text = "${#numbers.formatDecimal(order.getKey().totalVatCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td >
< h3 > Gesammtpreis< / h3 >
< / td >
< td >
2020-06-13 21:59:18 +02:00
< h3 th:text = "${#numbers.formatDecimal(order.getKey().totalGrossCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / td >
< / tr >
2020-01-25 20:30:26 +01:00
< / table >
2020-04-27 09:48:24 +02:00
< / div >
< / div >
< / main >
< footer th:replace = "fragments/footer :: footer" > < / footer >
2020-01-25 20:30:26 +01:00
< / body >
< / html >