<!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/nation.css"/>
    <link rel="stylesheet" href="/css/modal-nation.css"/>
</head>
<body>
<div layout:fragment="content">
    <form action="#" th:action="@{/nation/{id}(id=${id})}" th:object="${fullNationDTO}" method="get">
        <div th:each="tank, iterator: ${fullNationDTO.tanks}">
            <div class="nation-card">
                <p class="nation-attribute" th:text="'Номер: ' + ${tank.id}"/>
                <p class="nation-attribute" th:text="'Название: ' + ${tank.name}"/>
                <p class="nation-attribute" th:text="'Стоимость: ' + ${tank.cost}"/>
                <p class="nation-attribute" th:text="'Уровень: ' + ${tank.level.level}"/>
            </div>
        </div>
    </form>
</div>
<!--<div layout:fragment="content">
    <div th:text="${errors}" class="margin-bottom alert-danger"></div>
    <form action="#" th:action="@{/student/{id}(id=${id})}" th:object="${studentDto}" method="post">
        <div class="mb-3">
            <label for="firstName" class="form-label">Имя</label>
            <input type="text" class="form-control" id="firstName" th:field="${studentDto.firstName}" required="true">
        </div>
        <div class="mb-3">
            <label for="lastName" class="form-label">Фамилия</label>
            <input type="text" class="form-control" id="lastName" th:field="${studentDto.lastName}" required="true">
        </div>
        <div class="mb-3">
            <button type="submit" class="btn btn-primary button-fixed">
                <span th:if="${id == null}">Добавить</span>
                <span th:if="${id != null}">Обновить</span>
            </button>
            <a class="btn btn-secondary button-fixed" th:href="@{/student}">
                Назад
            </a>
        </div>
    </form>
</div>-->
</body>
</html>