58 lines
1.6 KiB
HTML
58 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="cs">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Týmy</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Týmy</h1>
|
|
<table border="1">
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Název týmu</th>
|
|
<th>Obtížnost</th>
|
|
<th>Právě řešená šifra</th>
|
|
<th>Poslední načtená šifra</th>
|
|
<th>Penalizace (minuty)</th>
|
|
<th>Smazat tým</th>
|
|
</tr>
|
|
{{range .Teams}}
|
|
<tr>
|
|
<td>{{.ID}}</td>
|
|
<td>{{.TeamName}}</td>
|
|
<td>{{.Difficulty}}</td>
|
|
<td>{{.LastCipher}}</td>
|
|
<td>{{.LastLoadedCipher}}</td>
|
|
<td>{{.Penalties}}</td>
|
|
<td>
|
|
<form action="/admin/teams" method="post">
|
|
<input type="hidden" name="delete" value="{{.TeamName}}">
|
|
<button type="submit">Smazat</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
<hr>
|
|
<p>Vynulování penalizací a posledních šifer.</p>
|
|
<a href="/admin/start">Start Závodu</a>
|
|
<hr>
|
|
<h2>Přidat tým</h2>
|
|
<form method="post" action="/admin/teams">
|
|
Název týmu: <input type="text" name="name" required>
|
|
Obtížnost:
|
|
<select name="difficulty">
|
|
{{range .Difficulties}}
|
|
<option value="{{.ID}}">{{.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
Heslo: <input type="text" name="password" required>
|
|
<input type="submit" value="Přidat tým">
|
|
</form>
|
|
<hr>
|
|
<a href="/admin">Zpět na admin panel</a>
|
|
</body>
|
|
|
|
</html> |