floot plan editor

This commit is contained in:
2026-02-12 14:38:55 +01:00
parent be3bbf01f2
commit 9054dffdd5
6 changed files with 750 additions and 169 deletions

View File

@@ -15,6 +15,8 @@ $deviceTypeId = (int)($_GET['id'] ?? 0);
$deviceType = null;
$ports = [];
//TODO port hinzufügen geht nicht
if ($deviceTypeId > 0) {
$deviceType = $sql->single(
"SELECT * FROM device_types WHERE id = ?",

View File

@@ -99,6 +99,7 @@ if (!empty($floor['svg_path'])) {
<h4>Zeichenwerkzeug</h4>
<button type="button" class="button" id="floor-start-polyline">Neue Linie starten</button>
<button type="button" class="button" id="floor-finish-polyline">Linie beenden</button>
<button type="button" class="button" id="floor-remove-last-point">Letzten Punkt entfernen</button>
<button type="button" class="button button-danger" id="floor-delete-polyline">Ausgewählte Linie löschen</button>
<button type="button" class="button button-danger" id="floor-clear-drawing">Alles löschen</button>