diff --git a/src/main/resources/templates/fragments/forms.html b/src/main/resources/templates/fragments/forms.html index b07e1b7..806fd72 100644 --- a/src/main/resources/templates/fragments/forms.html +++ b/src/main/resources/templates/fragments/forms.html @@ -96,8 +96,7 @@ th:classAppend="${field.isPrimaryKey() && object != null ? 'disable' : ''}" th:required="${!field.isNullable() && !field.isPrimaryKey()}" step="any" - oninvalid="this.setCustomValidity('This field is not nullable.')" - oninput="this.setCustomValidity('')"> + > diff --git a/src/main/resources/templates/model/create.html b/src/main/resources/templates/model/create.html index 5e236f0..e368bfb 100644 --- a/src/main/resources/templates/model/create.html +++ b/src/main/resources/templates/model/create.html @@ -32,6 +32,9 @@
@@ -52,9 +55,8 @@ " class="form-control" th:id="|__id_${field.getName()}|" th:required="${!field.isNullable() && !field.isPrimaryKey()}" - oninvalid="this.setCustomValidity('This field is not nullable.')" rows="5" - oninput="this.setCustomValidity('')"> + > + > Binary field @@ -92,8 +93,7 @@ th:name="${field.getName()}" class="form-control mt-2" th:id="|__id_${field.getName()}|" th:required="${!field.isNullable()}" - oninvalid="this.setCustomValidity('This field is not nullable.')" - oninput="this.setCustomValidity('')"> + >