48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
|
|
|
|
<head>
|
|
<title>Корзина</title>
|
|
</head>
|
|
|
|
<body>
|
|
<main layout:fragment="content" class="w-50 mx-auto py-3">
|
|
<strong class="flex-fill">Корзина</strong>
|
|
<div class="d-flex flex-column align-items-center">
|
|
<div class="card col-12 col-md-8 col-lg-6 w-75 align-items-center" th:each="cartItem : ${cart}">
|
|
<div class="card-body col-12 p-2 d-flex flex-row align-items-center justify-content-center">
|
|
<div class="col-5"><img src="/kola.jpg" class="w-75"></div>
|
|
<div class="col-3">
|
|
Название: [[${cartItem.productName}]]
|
|
</div>
|
|
<div class="col-4">
|
|
Цена: [[${cartItem.Price}]]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class=" mb-2 col-12 col-md-8 col-lg-6 d-flex justify-content-end">
|
|
|
|
</div>
|
|
<div class="mb-2 col-12 col-md-8 col-lg-6 d-flex justify-content-center"
|
|
th:if="${not #lists.isEmpty(cart)}">
|
|
<form action="#" th:action="@{/cart/save}" method="post">
|
|
<button type="submit" class="btn btn-primary" onclick="return confirm('Вы уверены?')">
|
|
Оформить заказ
|
|
</button>
|
|
</form>
|
|
</div>
|
|
<div class="mb-2 col-12 col-md-8 col-lg-6 d-flex align-items-center">
|
|
<form action="#" th:action="@{/cart/clear}" method="post">
|
|
<button type="submit" class="btn btn-danger button-fixed-width"
|
|
onclick="return confirm('Вы уверены?')">
|
|
<i class="bi bi-x-lg"></i> Очистить
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html> |