Commit 96257d23 authored by Matúš Valko's avatar Matúš Valko
Browse files

added team list

parent 1e0972de
<%@ 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
......@@ -18,7 +18,7 @@
<tr>
<th>id</th>
<th>city</th>
<th>county</th>
<th>country</th>
<th>prize pool</th>
<th>format</th>
<th>capacity</th>
......
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