Pops Bugfix

* Popnamen beim bearbeiten werden nun nicht werden nun nicht mehr mit Vorder- und Rückseite verfälscht.
* Wenn ein Rack 1/3 oder 1/4 Zoll hat und der 1te Slot belegt wurde wurde 1/2 Slot beim bearbeiten angezeigt
This commit is contained in:
Daniel Spitzer
2025-11-04 13:17:43 +01:00
parent 275258563a
commit a6bf3e915e
2 changed files with 28 additions and 10 deletions
+4 -5
View File
@@ -107,9 +107,9 @@ for ($i = 1; $i <= $rack_he; $i++) : ?>
}
if ($slots['width'] == "12") $width = "85%";
else if ($slots['width'] == "6") $width = "42%";
else if ($slots['width'] == "4") $width = "28%";
else if ($slots['width'] == "3") $width = "21%";
else if ($slots['width'] == "6") $width = "42.5%";
else if ($slots['width'] == "4") $width = "28.33%";
else if ($slots['width'] == "3") $width = "21.25%";
while ($position < $slots['position']) {
@@ -118,8 +118,7 @@ for ($i = 1; $i <= $rack_he; $i++) : ?>
$calcwidth += $slots['width'];
}
echo '<td title="' . strip_tags($displayName) . $extText . '" colspan="' . $slots['width'] . '" class="text-center border-top border-bottom border-right ' . $colorclass . '" data-id="' . $slots['moduleid'] . '" data-type="' . $slots['type'] . '" data-name="' . strip_tags($originalName) . '" data-status="' . ($slots['status'] ?? 'productive') . '" data-starthe="' . $module['start_he'] . '" data-ports="' . $slots['ports'] . '" data-plug="' . $slots['plug'] . '" rowspan="' . $modulelenght . '" style="width: ' . $width . '; border-color: #797979 !important;">' . $slots['modulname'] . $extTextspan . '</td>';
echo '<td title="' . strip_tags($displayName) . $extText . '" colspan="' . $slots['width'] . '" class="text-center border-top border-bottom border-right ' . $colorclass . '" data-id="' . $slots['moduleid'] . '" data-type="' . $slots['type'] . '" data-name="' . strip_tags($originalName) . '" data-status="' . ($slots['status'] ?? 'productive') . '" data-starthe="' . $module['start_he'] . '" data-ports="' . $slots['ports'] . '" data-plug="' . $slots['plug'] . '" data-width="' . $slots['width'] . '" rowspan="' . $modulelenght . '" style="width: ' . $width . '; border-color: #797979 !important;">' . $slots['modulname'] . $extTextspan . '</td>';
$position++;
$calcwidth += $slots['width'];
}