Spiele durch admin löschbar

This commit is contained in:
Klaas 2024-05-30 18:32:16 +02:00
parent 7a6076cd46
commit 05636fbf84
1 changed files with 3 additions and 0 deletions

View File

@ -45,10 +45,13 @@
<button type="submit" class="btn btn-success">Speichern</button>
</form>
<% if (session.role === 'admin') { %>
<form method="POST" action="/delete-spiel">
<input type="hidden" name="spielId" value="<%= spiel.id %>">
<button type="submit" class="btn btn-danger">Spiel löschen</button>
</form>
<% } %>
<button class="btn btn-secondary" onclick="toggleDivs()">Abbrechen</button>
</div>