fix: align total costs with visible budgets

This commit is contained in:
2026-05-06 13:31:32 +02:00
parent 7cd85cc5ae
commit 3990a2ea49
5 changed files with 162 additions and 11 deletions
+49
View File
@@ -71,4 +71,53 @@
</form>
</dialog>
{% endfor %}
<section class="panel">
<div class="panel-head">
<div>
<h2>Inaktive Elemente</h2>
<small>Ausgeblendete Konten, Kategorien und Einträge können hier endgültig gelöscht werden.</small>
</div>
</div>
{% if inactive_accounts or inactive_categories or inactive_entries %}
{% for account in inactive_accounts %}
<div class="month-row">
<div>
<strong>Konto: {{ account.name }}</strong>
<small>{{ account.slug }}</small>
</div>
<form method="post" action="{{ url_for('admin.delete_account', account_id=account.id) }}">
<button class="ghost-button danger-button" type="submit">Endgültig löschen</button>
</form>
</div>
{% endfor %}
{% for category in inactive_categories %}
<div class="month-row">
<div>
<strong>Kategorie: {{ category.name }}</strong>
<small>{{ category.account.name }} · {{ category.slug }}</small>
</div>
<form method="post" action="{{ url_for('admin.delete_category', category_id=category.id) }}">
<button class="ghost-button danger-button" type="submit">Endgültig löschen</button>
</form>
</div>
{% endfor %}
{% for entry in inactive_entries %}
<div class="month-row">
<div>
<strong>Eintrag: {{ entry.name }}</strong>
<small>{{ entry.category.name }} · {{ entry.slug }}</small>
</div>
<form method="post" action="{{ url_for('admin.delete_entry', entry_id=entry.id) }}">
<button class="ghost-button danger-button" type="submit">Endgültig löschen</button>
</form>
</div>
{% endfor %}
{% else %}
<div class="empty-state">Aktuell gibt es keine inaktiven Konten, Kategorien oder Einträge.</div>
{% endif %}
</section>
{% endblock %}