Neue Verwaltung der Gruppenzuordnung 1:n

This commit is contained in:
concierge committed 2026-10-30 09:02:46 +01:00
1 parent fa02a7ade0
commit 02c017d53d
34 files changed
+1306 -251

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}Accountverwaltung - CMBNet{% endblock %}
{% block title %}Accountverwaltung - {{ APP_TITLE }}{% endblock %}
{% block content %}
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
@@ -90,5 +90,6 @@
{% endblock %}
{% block scripts %}
<script>window.CMBNET_ADMIN_RELOAD_WATCH = true;</script>
<script src="{{ url_for('static', filename='js/views/admin_accounts.js') }}"></script>
{% endblock %}
+2 -1
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}Admin Dashboard - CMBNet{% endblock %}
{% block title %}Admin Dashboard - {{ APP_TITLE }}{% endblock %}
{% block content %}
<h1>Administrator Dashboard</h1>
@@ -35,5 +35,6 @@
{% endblock %}
{% block scripts %}
<script>window.CMBNET_ADMIN_RELOAD_WATCH = true;</script>
<script src="{{ url_for('static', filename='js/views/admin_dashboard.js') }}"></script>
{% endblock %}
+2 -18
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}Gruppenverwaltung - CMBNet{% endblock %}
{% block title %}Gruppenverwaltung - {{ APP_TITLE }}{% endblock %}
{% block content %}
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
@@ -12,7 +12,6 @@
<th>ID</th>
<th>Aliasname</th>
<th>State</th>
<th>Account</th>
<th>Position</th>
<th>Aktionen</th>
</tr>
@@ -31,14 +30,6 @@
<option value="fertig" {% if gruppe.state == 'fertig' %}selected{% endif %}>fertig</option>
</select>
</td>
<td>
<select onchange="updateGruppe({{ gruppe.id }}, {account_id: this.value})">
<option value="">-</option>
{% for acc in accounts %}
<option value="{{ acc.id }}" {% if gruppe.account_id == acc.id %}selected{% endif %}>{{ acc.name }}</option>
{% endfor %}
</select>
</td>
<td class="group-position">{% if gruppe.last_lat is not none and gruppe.last_lon is not none %}{{ gruppe.last_lat }}, {{ gruppe.last_lon }}{% else %}unbekannt{% endif %}</td>
<td>
<button onclick="showHistory({{ gruppe.id }})">Historie</button>
@@ -63,14 +54,6 @@
<label>Aliasname
<input type="text" id="gruppeAlias">
</label>
<label>Account (Rolle Gruppe)
<select id="gruppeAccount">
<option value="">-</option>
{% for acc in accounts %}
<option value="{{ acc.id }}">{{ acc.name }}</option>
{% endfor %}
</select>
</label>
<footer>
<button onclick="closeCreateGruppeModal()">Abbrechen</button>
<button onclick="createGruppe()">Anlegen</button>
@@ -106,5 +89,6 @@
{% endblock %}
{% block scripts %}
<script>window.CMBNET_ADMIN_RELOAD_WATCH = true;</script>
<script src="{{ url_for('static', filename='js/views/admin_gruppen.js') }}"></script>
{% endblock %}
+2 -1
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}Straßenverwaltung - CMBNet{% endblock %}
{% block title %}Straßenverwaltung - {{ APP_TITLE }}{% endblock %}
{% block content %}
<p><a href="{{ url_for('admin.dashboard', tenant=session.tenant_code) }}">← Zurück zum Dashboard</a></p>
@@ -154,5 +154,6 @@
{% endblock %}
{% block scripts %}
<script>window.CMBNET_ADMIN_RELOAD_WATCH = true;</script>
<script src="{{ url_for('static', filename='js/views/admin_strassen.js') }}"></script>
{% endblock %}