mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-06 12:11:13 +00:00
Fixed condition to show errors
This commit is contained in:
@@ -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