Administrator Views verbessert
This commit is contained in:
1 parent
ffdb399f9e
commit
0a2070fcf5
12 files changed
+247
-12
No files matched your search
@@ -0,0 +1,39 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Admin Dashboard - CMBNet{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Administrator Dashboard</h1>
|
||||
|
||||
<nav>
|
||||
<ul style="display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; padding: 0;">
|
||||
<li><a href="{{ url_for('admin.accounts', tenant=session.tenant_code) }}" role="button">Accountverwaltung</a></li>
|
||||
<li><a href="{{ url_for('admin_gruppen.gruppen', tenant=session.tenant_code) }}" role="button" class="secondary">Gruppenverwaltung</a></li>
|
||||
<li><a href="{{ url_for('admin_strassen.strassen', tenant=session.tenant_code) }}" role="button" class="secondary">Straßenverwaltung</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<section>
|
||||
<h2>Broker Status</h2>
|
||||
<p>Aktive WebSocket-Verbindungen</p>
|
||||
<table id="brokerStatusTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Account-ID</th>
|
||||
<th>Account</th>
|
||||
<th>Rolle</th>
|
||||
<th>Gruppe / Alias</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="brokerStatusBody">
|
||||
<tr><td colspan="4">Lade...</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<p style="margin-top: 2rem;"><a href="{{ url_for('auth.logout', tenant=session.tenant_code) }}" role="button" class="contrast">Abmelden</a></p>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='js/views/admin_dashboard.js') }}"></script>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user