bearbeiten Button für admin angepasst, löschen Button hinzugefügt

This commit is contained in:
kai
2026-08-25 12:32:28 +02:00
parent c0cfd2fd9b
commit 21e2265e2d
2 changed files with 37 additions and 0 deletions
+23
View File
@@ -42,6 +42,29 @@ a {
.detail-actions { .detail-actions {
margin-top: 30px; margin-top: 30px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.detail-actions form {
margin: 0;
}
.delete-concert-button {
display: inline-block;
padding: 10px 14px;
background: #b42318;
color: #ffffff;
border: 0;
border-radius: 9px;
font: inherit;
font-weight: bold;
cursor: pointer;
}
.delete-concert-button:hover {
background: #dc2626;
} }
.edit-button:hover { .edit-button:hover {
+14
View File
@@ -177,6 +177,20 @@
<a href="/concerts/{{ concert.id }}/edit" class="edit-button"> <a href="/concerts/{{ concert.id }}/edit" class="edit-button">
✏️ Konzert bearbeiten ✏️ Konzert bearbeiten
</a> </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> </div>
{% endif %} {% endif %}