mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-07 04:31:12 +00:00
Fixed condition to show errors
This commit is contained in:
@@ -58,8 +58,8 @@
|
|||||||
"></th:block>
|
"></th:block>
|
||||||
|
|
||||||
</th:block>
|
</th:block>
|
||||||
<ul class="text-red mt-2" th:if="${validationErrors != null && !validationErrors.isEmpty()}">
|
<ul class="text-red mt-2" th:if="${validationErrors != null && validationErrors.hasErrors(field.getJavaName())}">
|
||||||
<li th:each="error : ${validationErrors.forField(field.getName())}"
|
<li th:each="error : ${validationErrors.forField(field.getJavaName())}"
|
||||||
th:text="${error.getMessage()}"></li>
|
th:text="${error.getMessage()}"></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="separator mt-3 mb-2 separator-light"></div>
|
<div class="separator mt-3 mb-2 separator-light"></div>
|
||||||
|
Reference in New Issue
Block a user