Admin Dashboard und Hilfeseite
This commit is contained in:
@@ -36,8 +36,10 @@
|
||||
<div class="container-xl">
|
||||
<div class="d-flex flex-wrap gap-2 py-2">
|
||||
<a class="btn btn-white" href="/admin/{{ current_site }}"><i class="ti ti-arrow-left me-1"></i>Zurück</a>
|
||||
<a class="btn btn-white" href="/admin/dashboard"><i class="ti ti-dashboard me-1"></i>Admin Dashboard</a>
|
||||
<a class="btn btn-white active" href="/admin/users"><i class="ti ti-users me-1"></i>Userliste</a>
|
||||
<a class="btn btn-white" href="/admin/users/create"><i class="ti ti-user-plus me-1"></i>Neu anlegen</a>
|
||||
<a class="btn btn-white" href="/admin/help"><i class="ti ti-help me-1"></i>Hilfe</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,9 +71,11 @@
|
||||
<table class="table table-vcenter card-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>E-Mail</th>
|
||||
<th>Rolle</th>
|
||||
<th>Standorte</th>
|
||||
<th>Abteilung</th>
|
||||
<th>Status</th>
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
@@ -79,6 +83,7 @@
|
||||
<tbody>
|
||||
{% for u in users %}
|
||||
<tr>
|
||||
<td class="text-nowrap">{{ u.last_name }}{% if u.last_name and u.first_name %}, {% endif %}{{ u.first_name }}</td>
|
||||
<td class="text-nowrap">{{ u.email }}</td>
|
||||
<td>
|
||||
{% if u.role == "admin" %}
|
||||
@@ -100,6 +105,7 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-muted small">{{ u.department }}</td>
|
||||
<td>
|
||||
{% if u.must_change_password %}
|
||||
<span class="badge bg-warning text-white">Passwort-Änderung erforderlich</span>
|
||||
@@ -107,7 +113,7 @@
|
||||
<span class="badge bg-green text-green-fg">Aktiv</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<td class="text-nowrap">
|
||||
<div class="d-flex gap-1">
|
||||
{% if u.email != current_user.email %}
|
||||
<form action="/admin/users/delete/{{ u.email }}" method="post"
|
||||
|
||||
Reference in New Issue
Block a user