projects
/
demos
/
spring-boot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a checkbox, that is stored in a field of an inner class
[demos/spring-boot]
/
src
/
main
/
resources
/
templates
/
form.html
diff --git
a/src/main/resources/templates/form.html
b/src/main/resources/templates/form.html
index
b04d254
..
10ebfaa
100644
(file)
--- a/
src/main/resources/templates/form.html
+++ b/
src/main/resources/templates/form.html
@@
-20,6
+20,10
@@
<input type="checkbox" class="form-check-label" th:field="*{option}" />
<label class="form-check-label" th:for="${#ids.prev('option')}">Fancy Option To Choose</label>
</div>
<input type="checkbox" class="form-check-label" th:field="*{option}" />
<label class="form-check-label" th:for="${#ids.prev('option')}">Fancy Option To Choose</label>
</div>
+ <div class="form-group">
+ <input type="checkbox" class="form-check-label" th:field="*{inner.option}" />
+ <label class="form-check-label" th:for="${#ids.prev('inner.option')}">Another Option (In An Inner Class)</label>
+ </div>
</div>
</div>
<div class="card-footer">
</div>
</div>
<div class="card-footer">