opencode ergebnis V0.1

This commit is contained in:
concierge committed 2026-10-23 00:05:06 +02:00
1 parent 61d86a3d83
commit 7e498ebc3f
71 files changed
+28982 -46

No files matched your search

+123
View File
@@ -0,0 +1,123 @@
{% extends "base.html" %}
{% block title %}Dispatcher - {{ session.tenant_code }} - CMBNet{% endblock %}
{% block body_class %}dispatcher-page{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/dispatcher.css') }}">
{% endblock %}
{% block content %}
<div class="dispatcher-layout">
<section class="map-pane" aria-label="Kartenansicht">
<div id="map"></div>
</section>
<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>
<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>
<div class="connection-status" id="connectionStatus">Verbinde …</div>
</header>
<div class="group-accordion" id="groupAccordion"></div>
<footer class="control-footer">
<label class="slider-control" for="opacitySlider">
<span>Opazität <output id="opacityValue">0.70</output></span>
<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>
<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>
</footer>
</aside>
</div>
<!-- Freitext an alle senden -->
<dialog id="speakerModal">
<article>
<header>
<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>
<footer>
<button type="button" class="secondary" onclick="closeSpeakerModal()">Abbrechen</button>
<button type="button" onclick="sendSpeakerMessage()">Senden</button>
</footer>
</article>
</dialog>
<!-- Straßen-State ändern -->
<dialog id="streetModal">
<article>
<header>
<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>
<footer>
<button type="button" class="secondary" onclick="closeStreetModal()">Abbrechen</button>
<button type="button" onclick="saveStreetState()">Speichern</button>
</footer>
</article>
</dialog>
<!-- Chatverlauf einer Gruppe -->
<dialog id="chatModal">
<article class="chat-dialog">
<header>
<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>
<footer>
<button type="button" onclick="closeChatModal()">Schließen</button>
</footer>
</article>
</dialog>
{% endblock %}
{% block scripts %}
<script>
window.CMBNET_TENANT = {{ session.tenant_code|tojson }};
window.CMBNET_ACCOUNT_ID = {{ session.account_id|tojson }};
window.CMBNET_LOGOUT_URL = {{ url_for('auth.logout', tenant=session.tenant_code)|tojson }};
</script>
<script src="{{ url_for('static', filename='js/str2pl.js') }}"></script>
<script src="{{ url_for('static', filename='js/views/dispatcher.js') }}"></script>
{% endblock %}