mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2026-11-06 22:51:47 +09:00
Fixed condition to show errors
This commit is contained in:
1 parent
7333db3f04
commit
4b21437c30
1 file changed
+2
-2
@@ -58,8 +58,8 @@
|
||||
"></th:block>
|
||||
|
||||
</th:block>
|
||||
<ul class="text-red mt-2" th:if="${validationErrors != null && !validationErrors.isEmpty()}">
|
||||
<li th:each="error : ${validationErrors.forField(field.getName())}"
|
||||
<ul class="text-red mt-2" th:if="${validationErrors != null && validationErrors.hasErrors(field.getJavaName())}">
|
||||
<li th:each="error : ${validationErrors.forField(field.getJavaName())}"
|
||||
th:text="${error.getMessage()}"></li>
|
||||
</ul>
|
||||
<div class="separator mt-3 mb-2 separator-light"></div>
|
||||
|
||||
Reference in new issue
Block a user