<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>
+ <button type="submit" name="remove" class="btn btn-primary" th:value="|${card.key}:${row.key}|">Remove</button>
+ </div>
+ <div class="form-group">
+ <input type="text" th:field="*{row[__${card.key}__]}" />
+ <button type="submit" name="add" value="row" class="btn btn-primary">Add Row</button>
</div>
- <button type="submit" name="add" value="row" class="btn btn-primary">Add Row</button>
</div>
<div class="card-footer">
<button type="submit" name="remove" value="card" class="btn btn-primary">Remove Card</button>
</div>
</div>
</div>
- <button type="submit" name="add" value="card" class="btn btn-primary">Add Card</button>
+ <p><button type="submit" name="add" value="card" class="btn btn-primary">Add Card</button></p>
</form>
</main>
</body>