- <div class="form-group" th:each="key : *{map.keySet()}">
- <input type="checkbox" class="form-check-label" th:field="*{map[__${key}__]}" />
- <label class="form-check-label" th:for="|map${key}1|" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
+ <div class="card my-2" th:each="key : *{map.keySet()}">
+ <div class="card-body p-2">
+ <input type="checkbox" class="form-check-label" th:field="*{map[__${key}__]}" />
+ <label class="form-check-label" th:for="|map${key}1|" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
+ <button type="submit" class="close float-right pr-2" name="remove" th:value="${key}">
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>