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>
|
<button type="submit" class="btn btn-success">Speichern</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<% if (session.role === 'admin') { %>
|
||||||
<form method="POST" action="/delete-spiel">
|
<form method="POST" action="/delete-spiel">
|
||||||
<input type="hidden" name="spielId" value="<%= spiel.id %>">
|
<input type="hidden" name="spielId" value="<%= spiel.id %>">
|
||||||
<button type="submit" class="btn btn-danger">Spiel löschen</button>
|
<button type="submit" class="btn btn-danger">Spiel löschen</button>
|
||||||
</form>
|
</form>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<button class="btn btn-secondary" onclick="toggleDivs()">Abbrechen</button>
|
<button class="btn btn-secondary" onclick="toggleDivs()">Abbrechen</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue