Spiele durch admin löschbar
This commit is contained in:
parent
7a6076cd46
commit
05636fbf84
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue