bearbeiten Button für admin angepasst, löschen Button hinzugefügt
This commit is contained in:
@@ -177,6 +177,20 @@
|
||||
<a href="/concerts/{{ concert.id }}/edit" class="edit-button">
|
||||
✏️ Konzert bearbeiten
|
||||
</a>
|
||||
|
||||
{% if user.is_admin and can_delete %}
|
||||
|
||||
<form
|
||||
method="post"
|
||||
action="/concerts/{{ concert.id }}/delete"
|
||||
onsubmit="return confirm('Dieses Konzert wirklich löschen?');"
|
||||
>
|
||||
<button type="submit" class="delete-concert-button">
|
||||
🗑️ Konzert löschen
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user