Administrator Views verbessert
This commit is contained in:
1 parent
ffdb399f9e
commit
0a2070fcf5
12 files changed
+247
-12
No files matched your search
@@ -3,8 +3,8 @@
|
||||
{% block title %}Accountverwaltung - CMBNet{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
<h1>Accountverwaltung</h1>
|
||||
<p><a href="{{ url_for('auth.logout', tenant=session.tenant_code) }}">Abmelden</a></p>
|
||||
|
||||
<table id="accountsTable">
|
||||
<thead>
|
||||
@@ -39,13 +39,7 @@
|
||||
</table>
|
||||
|
||||
<button onclick="openCreateAccountModal()">Neuer Account</button>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('admin_gruppen.gruppen', tenant=session.tenant_code) }}">Gruppenverwaltung</a></li>
|
||||
<li><a href="{{ url_for('admin_strassen.strassen', tenant=session.tenant_code) }}">Straßenverwaltung</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p style="margin-top: 2rem;"><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
|
||||
<!-- Passwort Modal -->
|
||||
<dialog id="passwordModal">
|
||||
|
||||
@@ -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 %}
|
||||
@@ -3,8 +3,8 @@
|
||||
{% block title %}Gruppenverwaltung - CMBNet{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
<h1>Gruppenverwaltung</h1>
|
||||
<p><a href="{{ url_for('admin.accounts', tenant=session.tenant_code) }}">← Zurück zur Accountverwaltung</a></p>
|
||||
|
||||
<table id="gruppenTable">
|
||||
<thead>
|
||||
@@ -51,6 +51,7 @@
|
||||
</table>
|
||||
|
||||
<button onclick="openCreateGruppeModal()">Neue Gruppe</button>
|
||||
<p style="margin-top: 2rem;"><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
|
||||
<!-- Create Gruppe Modal -->
|
||||
<dialog id="createGruppeModal">
|
||||
|
||||
@@ -3,8 +3,30 @@
|
||||
{% block title %}Straßenverwaltung - CMBNet{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
<h1>Straßenverwaltung</h1>
|
||||
<p><a href="{{ url_for('admin.accounts', tenant=session.tenant_code) }}">← Zurück zur Accountverwaltung</a></p>
|
||||
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 0.75rem;">
|
||||
<label style="margin: 0;">Name filtern
|
||||
<input type="text" id="streetNameFilter" placeholder="z. B. Haupt" oninput="applyStreetFilters()">
|
||||
</label>
|
||||
<label style="margin: 0;">State
|
||||
<select id="streetStateFilter" onchange="applyStreetFilters()">
|
||||
<option value="">alle</option>
|
||||
<option value="unbearbeitet">unbearbeitet</option>
|
||||
<option value="zugewiesen">zugewiesen</option>
|
||||
<option value="erledigt">erledigt</option>
|
||||
</select>
|
||||
</label>
|
||||
<label style="margin: 0;">Gruppe
|
||||
<select id="streetGroupFilter" onchange="applyStreetFilters()">
|
||||
<option value="">alle</option>
|
||||
{% for gruppe in gruppen %}
|
||||
<option value="{{ gruppe.id }}">{{ gruppe.aliasname or gruppe.id }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<table id="strassenTable">
|
||||
<thead>
|
||||
@@ -60,6 +82,7 @@
|
||||
</button>
|
||||
<input type="file" id="houseNumberCsvFile" accept=".csv" style="display:none"
|
||||
onchange="importHouseNumbers(this)">
|
||||
<p style="margin-top: 2rem;"><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
|
||||
|
||||
<!-- Create/Edit Strasse Modal -->
|
||||
<dialog id="strasseModal">
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/admin.css') }}">
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}">
|
||||
|
||||
Reference in new issue
Block a user