<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{default}">
<head>
    <link rel="stylesheet" href="/css/tank.css"/>
</head>
<body>
    <div layout:fragment="content">
        <form action="#" th:action="@{/client/{id}(id=${id})}" th:object="${clientDTO}" method="get">
            <div th:each="tank, iterator: ${clientDTO.tanks}">
                <div class="tank-card">
                    <p class="tank-attribute" th:text="'Номер: ' + ${tank.id}"/>
                    <p class="tank-attribute" th:text="'Название: ' + ${tank.name}"/>
                    <p class="tank-attribute" th:text="'Стоимость: ' + ${tank.cost}"/>
                    <p class="tank-attribute" th:text="'Нация: ' + ${tank.nation.nation}"/>
                    <p class="tank-attribute" th:text="'Уровень: ' + ${tank.level.level}"/>
                </div>
            </div>
        </form>
    </div>
</body>
</html>