Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Samuel Dudík
PA165 Winery Management System
Commits
6aa91083
Commit
6aa91083
authored
May 25, 2022
by
xkorenk
Browse files
little fix
parent
4a88ad00
Pipeline
#142633
passed with stages
in 2 minutes and 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
winery/webapp/src/main/java/cz/muni/fi/pa165/winery/webapp/models/wineBottle/WineBottleUpsertViewModel.java
View file @
6aa91083
...
...
@@ -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
*/
@Not
Null
(
message
=
"Cannot be empty"
)
@Not
Blank
(
message
=
"Cannot be empty"
)
private
String
name
;
/**
...
...
winery/webapp/src/main/resources/templates/winebottle/edit.html
View file @
6aa91083
...
...
@@ -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>
...
...
winery/webapp/src/main/resources/templates/winetype/edit.html
View file @
6aa91083
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment