noch mehr UI für den Dispatcher
This commit is contained in:
1 parent
4f87a19ba2
commit
7b8d2ec396
12 files changed
+1170
-70
No files matched your search
@@ -4,6 +4,8 @@
|
||||
|
||||
{% block body_class %}dispatcher-page{% endblock %}
|
||||
|
||||
{% block logo %}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/dispatcher.css') }}">
|
||||
{% endblock %}
|
||||
@@ -16,19 +18,20 @@
|
||||
|
||||
<aside class="control-pane" aria-label="Kontrollansicht">
|
||||
<header class="control-header">
|
||||
<div class="clock" aria-live="off">
|
||||
<div class="clock-date" id="clockDate"></div>
|
||||
<div class="clock-time" id="clockTime">--:--:--</div>
|
||||
<div class="clock-row">
|
||||
<div class="clock" aria-live="off">
|
||||
<div class="clock-date" id="clockDate">
|
||||
<span class="clock-weekday" id="clockWeekday"></span>
|
||||
<span class="clock-day" id="clockDay"></span>
|
||||
</div>
|
||||
<div class="clock-time" id="clockTime">--:--:--</div>
|
||||
</div>
|
||||
<img class="dispatcher-logo"
|
||||
src="{{ url_for('static', filename='img/logo.png') }}"
|
||||
alt="CMBNet">
|
||||
</div>
|
||||
|
||||
<div class="header-controls">
|
||||
<label class="map-layer-label">
|
||||
<span>Hintergrundkarte</span>
|
||||
<select id="baseLayerSelect">
|
||||
<option value="osm">OpenStreetMap</option>
|
||||
<option value="aerial">Luftbild</option>
|
||||
</select>
|
||||
</label>
|
||||
<button type="button" id="speakerButton" class="icon-button"
|
||||
title="Nachricht an alle senden" aria-label="Nachricht an alle senden">📢</button>
|
||||
</div>
|
||||
@@ -43,14 +46,30 @@
|
||||
<input id="opacitySlider" type="range" min="0" max="1" step="0.05" value="0.7">
|
||||
</label>
|
||||
<label class="slider-control" for="weightSlider">
|
||||
<span>Markerbreite <output id="weightValue">20</output></span>
|
||||
<span>Markerbreite <output id="weightValue">20 m</output></span>
|
||||
<input id="weightSlider" type="range" min="1" max="100" step="1" value="20">
|
||||
</label>
|
||||
<div class="footer-buttons">
|
||||
<button type="button" id="fitBoundsButton" class="icon-button"
|
||||
title="Gesamten Straßenbereich anzeigen" aria-label="Gesamten Straßenbereich anzeigen">🌍</button>
|
||||
<a id="logoutButton" class="icon-button" href="{{ url_for('auth.logout', tenant=session.tenant_code) }}"
|
||||
title="Session beenden" aria-label="Session beenden">⏻</a>
|
||||
<div class="footer-bottom">
|
||||
<div class="footer-settings">
|
||||
<label class="map-layer-label">
|
||||
<span>Hintergrundkarte</span>
|
||||
<select id="baseLayerSelect">
|
||||
<option value="osm">OpenStreetMap</option>
|
||||
<option value="aerial">Luftbild</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="theme-switch" title="Dark-Modus umschalten">
|
||||
<span>Dark</span>
|
||||
<input type="checkbox" id="darkModeToggle" role="switch"
|
||||
aria-label="Dark-Modus">
|
||||
</label>
|
||||
</div>
|
||||
<div class="footer-buttons">
|
||||
<button type="button" id="fitBoundsButton" class="icon-button"
|
||||
title="Gesamten Straßenbereich anzeigen" aria-label="Gesamten Straßenbereich anzeigen">🌍</button>
|
||||
<a id="logoutButton" class="icon-button" href="{{ url_for('auth.logout', tenant=session.tenant_code) }}"
|
||||
title="Session beenden" aria-label="Session beenden">⏻</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</aside>
|
||||
@@ -63,9 +82,11 @@
|
||||
<button class="close" type="button" aria-label="Schließen" onclick="closeSpeakerModal()"></button>
|
||||
<h3>Nachricht an alle</h3>
|
||||
</header>
|
||||
<label>Freitext
|
||||
<textarea id="speakerText" rows="4" placeholder="Nachricht eingeben …"></textarea>
|
||||
</label>
|
||||
<div class="dialog-body">
|
||||
<label>Freitext
|
||||
<textarea id="speakerText" rows="4" placeholder="Nachricht eingeben …"></textarea>
|
||||
</label>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" class="secondary" onclick="closeSpeakerModal()">Abbrechen</button>
|
||||
<button type="button" onclick="sendSpeakerMessage()">Senden</button>
|
||||
@@ -80,16 +101,18 @@
|
||||
<button class="close" type="button" aria-label="Schließen" onclick="closeStreetModal()"></button>
|
||||
<h3 id="streetModalTitle">Straße</h3>
|
||||
</header>
|
||||
<label>State
|
||||
<select id="streetStateSelect">
|
||||
<option value="unbearbeitet">unbearbeitet</option>
|
||||
<option value="zugewiesen">zugewiesen</option>
|
||||
<option value="erledigt">erledigt</option>
|
||||
</select>
|
||||
</label>
|
||||
<label id="streetGroupLabel">Gruppe
|
||||
<select id="streetGroupSelect"></select>
|
||||
</label>
|
||||
<div class="dialog-body">
|
||||
<label>State
|
||||
<select id="streetStateSelect">
|
||||
<option value="unbearbeitet">unbearbeitet</option>
|
||||
<option value="zugewiesen">zugewiesen</option>
|
||||
<option value="erledigt">erledigt</option>
|
||||
</select>
|
||||
</label>
|
||||
<label id="streetGroupLabel">Gruppe
|
||||
<select id="streetGroupSelect"></select>
|
||||
</label>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" class="secondary" onclick="closeStreetModal()">Abbrechen</button>
|
||||
<button type="button" onclick="saveStreetState()">Speichern</button>
|
||||
@@ -97,6 +120,40 @@
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
<!-- Straßen einer Gruppe -->
|
||||
<dialog id="groupStreetsModal" class="group-streets-dialog" aria-labelledby="groupStreetsTitle">
|
||||
<article>
|
||||
<header>
|
||||
<button class="close" type="button" aria-label="Schließen" onclick="closeGroupStreetsModal()"></button>
|
||||
<h3 id="groupStreetsTitle" title="Zum Verschieben ziehen">Straßen</h3>
|
||||
</header>
|
||||
<div id="groupStreetsContent" class="dialog-body"></div>
|
||||
<footer>
|
||||
<button type="button" class="secondary" onclick="closeGroupStreetsModal()">Schließen</button>
|
||||
</footer>
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
<!-- Aliasname einer Gruppe -->
|
||||
<dialog id="groupAliasModal" aria-labelledby="groupAliasTitle">
|
||||
<article>
|
||||
<header>
|
||||
<button class="close" type="button" aria-label="Schließen" onclick="closeGroupAliasModal()"></button>
|
||||
<h3 id="groupAliasTitle">Aliasname ändern</h3>
|
||||
</header>
|
||||
<div class="dialog-body">
|
||||
<label>Aliasname
|
||||
<input type="text" id="groupAliasInput" maxlength="120" autocomplete="off"
|
||||
placeholder="Leer lassen für Gruppen-ID">
|
||||
</label>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" class="secondary" onclick="closeGroupAliasModal()">Abbrechen</button>
|
||||
<button type="button" id="groupAliasSave" onclick="saveGroupAlias()">Speichern</button>
|
||||
</footer>
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
<!-- Chatverlauf einer Gruppe -->
|
||||
<dialog id="chatModal">
|
||||
<article class="chat-dialog">
|
||||
@@ -104,7 +161,7 @@
|
||||
<button class="close" type="button" aria-label="Schließen" onclick="closeChatModal()"></button>
|
||||
<h3 id="chatTitle">Chat</h3>
|
||||
</header>
|
||||
<div class="chat-messages" id="chatMessages"></div>
|
||||
<div class="chat-messages dialog-body" id="chatMessages"></div>
|
||||
<footer>
|
||||
<button type="button" onclick="closeChatModal()">Schließen</button>
|
||||
</footer>
|
||||
|
||||
Reference in new issue
Block a user