File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/resources/templates/fragments Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 55 < div th:with ="valid=${!#fields.hasErrors(name)} "
66 th:class ="${'form-group' + (valid ? '' : ' has-error')} "
77 class ="form-group ">
8- < label class ="col-sm-2 control-label " th:text ="${label} "> Label</ label >
8+ < label th:for =" ${name} " class ="col-sm-2 control-label " th:text ="${label} "> Label</ label >
99 < div class ="col-sm-10 ">
1010 < div th:switch ="${type} ">
1111 < input th:case ="'text' " class ="form-control " type ="text " th:field ="*{__${name}__} " />
Original file line number Diff line number Diff line change 55 < div th:with ="valid=${!#fields.hasErrors(name)} "
66 th:class ="${'form-group' + (valid ? '' : ' has-error')} "
77 class ="form-group ">
8- < label class ="col-sm-2 control-label " th:text ="${label} "> Label</ label >
8+ < label th:for =" ${name} " class ="col-sm-2 control-label " th:text ="${label} "> Label</ label >
99
1010 < div class ="col-sm-10 ">
1111 < select th:field ="*{__${name}__} ">
You can’t perform that action at this time.
0 commit comments