Standort löschen für nicht admins ausgeblendet
This commit is contained in:
@@ -151,13 +151,15 @@
|
|||||||
<div class="page-wrapper">
|
<div class="page-wrapper">
|
||||||
<div class="container-xl mt-4">
|
<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">
|
<div class="d-flex justify-content-end mb-3">
|
||||||
<form action="/admin/{{ current_site }}/delete-site" method="post"
|
<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.')">
|
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>
|
<button type="submit" class="btn btn-outline-danger btn-sm"><i class="ti ti-building-off me-1"></i>Standort löschen</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- ========================= -->
|
<!-- ========================= -->
|
||||||
<!-- SCREEN-CARDS -->
|
<!-- SCREEN-CARDS -->
|
||||||
|
|||||||
Reference in New Issue
Block a user