mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-13 07:01:13 +00:00
Showing validation errors field by field
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
.text-red {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.separator-light {
|
||||
opacity: 25%;
|
||||
}
|
||||
|
@@ -57,6 +57,10 @@
|
||||
"></th:block>
|
||||
|
||||
</th:block>
|
||||
<ul class="text-red mt-2" th:if="${validationErrors != null && !validationErrors.isEmpty()}">
|
||||
<li th:each="error : ${validationErrors.forField(field.getName())}"
|
||||
th:text="${error.getMessage()}"></li>
|
||||
</ul>
|
||||
<div class="separator mt-3 mb-2 separator-light"></div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user