Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Matúš Valko
Online Gaming Management System
Commits
ae648e24
Commit
ae648e24
authored
May 20, 2022
by
Adrián Piaček
Browse files
Added conversion for tournament from form
parent
2de3023c
Changes
2
Hide whitespace changes
Inline
Side-by-side
gaming-api/src/main/java/cz/muni/fi/pa165/dto/MatchDTO.java
View file @
ae648e24
...
@@ -23,4 +23,6 @@ public class MatchDTO extends BaseDTO {
...
@@ -23,4 +23,6 @@ public class MatchDTO extends BaseDTO {
private
Set
<
TeamEntity
>
teams
=
new
HashSet
<>();
private
Set
<
TeamEntity
>
teams
=
new
HashSet
<>();
private
Set
<
PlayerEntity
>
players
=
new
HashSet
<>();
private
Set
<
PlayerEntity
>
players
=
new
HashSet
<>();
private
String
tournamentId
;
}
}
gaming-spring-mvc/src/main/webapp/WEB-INF/jsp/match/new.jsp
View file @
ae648e24
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<form:label
path=
"tournament"
cssClass=
"col-sm-2 control-label"
>
Tournament
</form:label>
<form:label
path=
"tournament"
cssClass=
"col-sm-2 control-label"
>
Tournament
</form:label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<form:select
path=
"tournament"
required=
"required"
cssClass=
"form-control"
>
<form:select
path=
"tournament
Id
"
required=
"required"
cssClass=
"form-control"
>
<c:forEach
items=
"
${
tournaments
}
"
var=
"t"
>
<c:forEach
items=
"
${
tournaments
}
"
var=
"t"
>
<form:option
value=
"
${
t
}
"
>
${t.id}
</form:option>
<form:option
value=
"
${
t
.
id
}
"
>
${t.id}
</form:option>
</c:forEach>
</c:forEach>
</form:select>
</form:select>
<form:errors
path=
"tournament"
cssClass=
"error"
/>
<form:errors
path=
"tournament
Id
"
cssClass=
"error"
/>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
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