bearbeiten Button für admin angepasst, löschen Button hinzugefügt
This commit is contained in:
@@ -42,6 +42,29 @@ a {
|
||||
|
||||
.detail-actions {
|
||||
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 {
|
||||
|
||||
@@ -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