admin: obtiznosti + ID

This commit is contained in:
2025-10-12 16:14:06 +02:00
parent 8fe76406d8
commit 6623d747ab
4 changed files with 17 additions and 9 deletions

View File

@@ -10,15 +10,17 @@
<h1>Úrovně obtížnosti</h1>
<table border="1">
<tr>
<th>ID</th>
<th>Jméno</th>
<th>Smazat</th>
</tr>
{{range .}}
<tr>
<td>{{.}}</td>
<td>{{.ID}}</td>
<td>{{.Name}}</td>
<td>
<form action="/admin/levels" method="post">
<input type="hidden" name="delete" value="{{.}}">
<input type="hidden" name="delete" value="{{.ID}}">
<button type="submit">Smazat</button>
</form>
</td>