Dirty fix for the bug in #ids.prev()
authorKai Moritz <kai@juplo.de>
Tue, 21 Jan 2020 22:55:40 +0000 (23:55 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Apr 2023 11:15:40 +0000 (13:15 +0200)
src/main/resources/templates/form.html

index 533758e..b8b5158 100644 (file)
@@ -26,8 +26,7 @@
               </div>
               <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="${#ids.prev('map[__${key}__]')}" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>-->
-                <label class="form-check-label" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
+                <label class="form-check-label" th:for="|map${key}1|" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
               </div>
             </div>
           </div>