Commit 6aa91083 authored by xkorenk's avatar xkorenk
Browse files

little fix

parent 4a88ad00
Pipeline #142633 passed with stages
in 2 minutes and 15 seconds
......@@ -10,6 +10,7 @@ import lombok.Setter;
import org.modelmapper.ModelMapper;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.math.BigDecimal;
......@@ -36,7 +37,7 @@ public class WineBottleUpsertViewModel extends ViewModelBase {
/**
* name of wine bottle
*/
@NotNull(message = "Cannot be empty")
@NotBlank(message = "Cannot be empty")
private String name;
/**
......
......@@ -24,6 +24,7 @@
<div class="form-group">
<label th:for="*{name}" th:value="*{name}">Name</label>
<input class="form-control" type="text" th:field="*{name}">
<p class="text-danger" th:each="error : ${#fields.errors('name')}" th:text="${error}"></p>
</div>
<div class="form-group">
<label th:for="*{typeId}" th:value="*{typeId}">Type</label>
......
......@@ -24,6 +24,7 @@
<div class="form-group">
<label th:for="*{name}" th:value="*{name}">Name</label>
<input class="form-control" type="text" th:field="*{name}">
<p class="text-danger" th:each="error : ${#fields.errors('name')}" th:text="${error}"></p>
</div>
<div class="form-group">
<label th:for="*{grapeId}" th:value="*{grapeId}">Grape</label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment