</nav>
<main class="container mt-5">
<form action="#" th:action="@{/}" th:object="${form}" method="get">
- <div class="card" th:each="card : *{cards.rowSet()}">
+ <div class="card" th:each="card : *{cards.entrySet()}">
<div class="card-header"><h1 th:text="|Card #${card.key}|">Card #X</h1></div>
<div class="card-body">
<div class="card-text">
- <div class="form-group" th:each="row : ${card.value.rowSet()}">
+ <div class="form-group" th:each="row : ${card.value.entrySet()}">
<input type="checkbox" id="x" class="form-control" th:field="*{cards[__${card.key}__][__${row.key}__]}" />
<label for="x" th:for="${#ids.prev('cards[__${card.key}__][__${row.key}__]')}" th:text="${row.value}">ROW_NAME</label>
<button type="submit" name="removeRow" class="btn btn-primary" th:value="|${card.key}:${row.key}|">Remove</button>