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
96257d23
Commit
96257d23
authored
May 20, 2022
by
Matúš Valko
Browse files
added team list
parent
1e0972de
Changes
2
Hide whitespace changes
Inline
Side-by-side
gaming-spring-mvc/src/main/webapp/WEB-INF/jsp/team/list.jsp
0 → 100644
View file @
96257d23
<%@ page
contentType=
"text/html;charset=UTF-8"
pageEncoding=
"utf-8"
trimDirectiveWhitespaces=
"false"
session=
"false"
%>
<%@ taglib
tagdir=
"/WEB-INF/tags"
prefix=
"my"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%>
<%@ taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%>
<my:pagetemplate
title=
"Teams"
>
<jsp:attribute
name=
"body"
>
<my:a
href=
"/team/new"
class=
"btn btn-primary"
>
<span
class=
"glyphicon glyphicon-plus"
aria-hidden=
"true"
></span>
New tournament
</my:a>
<table
class=
"table"
>
<thead>
<tr>
<th>
id
</th>
<th>
city
</th>
<th>
country
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
teams
}
"
var=
"team"
>
<tr>
<td>
${team.id}
</td>
<td><c:out
value=
"
${
tournament
.
city
}
"
/></td>
<td><c:out
value=
"
${
tournament
.
country
}
"
/></td>
<td>
<my:a
href=
"/team/view/${team.id}"
class=
"btn btn-primary"
>
View
</my:a>
</td>
<td>
<form
method=
"post"
action=
"${pageContext.request.contextPath}/team/delete/${team.id}"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Delete
</button>
</form>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</jsp:attribute>
</my:pagetemplate>
\ No newline at end of file
gaming-spring-mvc/src/main/webapp/WEB-INF/jsp/tournament/list.jsp
View file @
96257d23
...
...
@@ -18,7 +18,7 @@
<tr>
<th>
id
</th>
<th>
city
</th>
<th>
county
</th>
<th>
count
r
y
</th>
<th>
prize pool
</th>
<th>
format
</th>
<th>
capacity
</th>
...
...
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