Standort löschen für nicht admins ausgeblendet

This commit is contained in:
Erik Thiele
2026-06-21 18:12:10 +02:00
parent a5653b2d99
commit 589b5a58ed

View File

@@ -151,13 +151,15 @@
<div class="page-wrapper">
<div class="container-xl mt-4">
<!-- ─── Standort löschen (Button oben rechts) ─── -->
<!-- ─── Standort löschen (Button oben rechts, nur für Admins) ─── -->
{% if current_user.is_admin %}
<div class="d-flex justify-content-end mb-3">
<form action="/admin/{{ current_site }}/delete-site" method="post"
onsubmit="return confirm('Standort »{{ current_site }}« wirklich löschen? Alle Screens und Medien werden gelöscht.')">
<button type="submit" class="btn btn-outline-danger btn-sm"><i class="ti ti-building-off me-1"></i>Standort löschen</button>
</form>
</div>
{% endif %}
<!-- ========================= -->
<!-- SCREEN-CARDS -->