Neue Verwaltung der Gruppenzuordnung 1:n
This commit is contained in:
1 parent
fa02a7ade0
commit
02c017d53d
34 files changed
+1306
-251
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Dispatcher - {{ session.tenant_code }} - CMBNet{% endblock %}
|
||||
{% block title %}Dispatcher - {{ session.tenant_code }} - {{ APP_TITLE }}{% endblock %}
|
||||
|
||||
{% block body_class %}dispatcher-page{% endblock %}
|
||||
|
||||
@@ -26,11 +26,9 @@
|
||||
</div>
|
||||
<div class="clock-time" id="clockTime">--:--:--</div>
|
||||
</div>
|
||||
<button type="button" id="speakerButton" class="icon-button"
|
||||
title="Nachricht an alle senden" aria-label="Nachricht an alle senden">📢</button>
|
||||
<img class="dispatcher-logo"
|
||||
src="{{ url_for('static', filename='img/logo.png') }}"
|
||||
alt="CMBNet">
|
||||
alt="{{ APP_TITLE }}">
|
||||
</div>
|
||||
|
||||
<div class="street-search" role="search">
|
||||
@@ -47,7 +45,31 @@
|
||||
</div>
|
||||
<div class="street-search-status" id="streetSearchStatus"
|
||||
role="status" aria-live="polite"></div>
|
||||
<div class="connection-status" id="connectionStatus">Verbinde …</div>
|
||||
<div class="header-status-row">
|
||||
<div class="connection-status" id="connectionStatus">Verbinde …</div>
|
||||
<div class="header-action-buttons">
|
||||
<button type="button" id="speakerButton" class="icon-button"
|
||||
title="Nachricht an alle senden" aria-label="Nachricht an alle senden">📢</button>
|
||||
<button type="button" id="groupAssignmentButton"
|
||||
class="icon-button group-assignment-button"
|
||||
title="Gruppen-Accounts zuordnen"
|
||||
aria-label="Gruppen-Accounts zuordnen">
|
||||
<svg viewBox="0 0 32 24" fill="none" stroke="currentColor"
|
||||
stroke-width="1.4" stroke-linecap="round"
|
||||
stroke-linejoin="round" aria-hidden="true" focusable="false">
|
||||
<path d="M2.5 5.5 4 7.2 5.6 4.6 7.2 7.2 8.7 5.5 8.2 8.2H3z"/>
|
||||
<circle cx="5.8" cy="10.4" r="1.8"/>
|
||||
<path d="M2.7 18.8c.3-3 1.5-4.6 3.1-4.6s2.8 1.6 3.1 4.6"/>
|
||||
<path d="M12.9 3.5 14.4 5.2 16 2.6 17.6 5.2 19.1 3.5 18.6 6.2H13.4z"/>
|
||||
<circle cx="16" cy="8.4" r="1.8"/>
|
||||
<path d="M13 17c.3-3 1.5-4.6 3-4.6s2.7 1.6 3 4.6"/>
|
||||
<path d="M23.3 5.5 24.8 7.2 26.4 4.6 28 7.2 29.5 5.5 29 8.2h-5.2z"/>
|
||||
<circle cx="26.4" cy="10.4" r="1.8"/>
|
||||
<path d="M23.3 18.8c.3-3 1.5-4.6 3.1-4.6s2.8 1.6 3.1 4.6"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="group-accordion" id="groupAccordion"></div>
|
||||
@@ -168,6 +190,37 @@
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
<!-- Gruppen-Accounts den Gruppen zuordnen -->
|
||||
<dialog id="groupAssignmentModal" class="group-assignment-dialog"
|
||||
aria-labelledby="groupAssignmentTitle">
|
||||
<article>
|
||||
<header>
|
||||
<h3 id="groupAssignmentTitle">Gruppen-Accounts zuordnen</h3>
|
||||
</header>
|
||||
<div class="dialog-body group-assignment-body">
|
||||
<p class="group-assignment-hint">
|
||||
Für jeden Account kann höchstens eine Gruppe gewählt werden.
|
||||
„Nicht dabei“ hebt eine bestehende Zuordnung auf.
|
||||
</p>
|
||||
<div class="group-assignment-scroll">
|
||||
<table class="group-assignment-table" id="groupAssignmentTable">
|
||||
<thead id="groupAssignmentHead"></thead>
|
||||
<tbody id="groupAssignmentBody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p id="groupAssignmentEmpty" class="group-assignment-empty" hidden>
|
||||
Es gibt keine Accounts mit der Rolle „Gruppe“.
|
||||
</p>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" class="secondary"
|
||||
onclick="closeGroupAssignmentModal()">Abbrechen</button>
|
||||
<button type="button" id="groupAssignmentSaveButton"
|
||||
onclick="saveGroupAssignments()">Speichern</button>
|
||||
</footer>
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
<!-- Chatverlauf einer Gruppe -->
|
||||
<dialog id="chatModal">
|
||||
<article class="chat-dialog">
|
||||
|
||||
Reference in new issue
Block a user