feat: Add edit and delete functionality for Verwaltungskosten

- Add verwaltungskosten_delete view with confirmation page
- Add delete URL route and template
- Fix template action buttons to use proper URLs for edit/delete
- Include audit logging for deletions
- Add comprehensive delete confirmation with entry details
- Remove non-functional details button from action group
This commit is contained in:
2025-10-05 23:42:05 +02:00
parent ca3bf0f296
commit f04d93c7f0
4 changed files with 135 additions and 5 deletions

View File

@@ -138,13 +138,10 @@
</td>
<td>
<div class="btn-group btn-group-sm" role="group">
<a href="#" class="btn btn-outline-primary" title="Bearbeiten">
<a href="{% url 'stiftung:verwaltungskosten_edit' kosten.pk %}" class="btn btn-outline-primary" title="Bearbeiten">
<i class="fas fa-edit"></i>
</a>
<a href="#" class="btn btn-outline-info" title="Details">
<i class="fas fa-eye"></i>
</a>
<a href="#" class="btn btn-outline-danger" title="Löschen">
<a href="{% url 'stiftung:verwaltungskosten_delete' kosten.pk %}" class="btn btn-outline-danger" title="Löschen">
<i class="fas fa-trash"></i>
</a>
</div>