Zeiterfassungs Billing Update/Devices Parents

This commit is contained in:
Spitzer Daniel
2024-04-16 15:14:36 +02:00
parent 9d5be184a2
commit 81251bf4dd
8 changed files with 147 additions and 1 deletions

View File

@@ -175,6 +175,9 @@ if ($devices->power != "0.0") {
} else {
$power = $devices->devicetype->power;
}
foreach ($devicesall as $deviceall) {
$DevicesAll[$deviceall->id] = $deviceall->name;
}
?>
<div class="row">
<div class="col-12">
@@ -205,6 +208,12 @@ if ($devices->power != "0.0") {
<th>Geräte Hersteller</th>
<td><?= $devices->devicetype->devicemanufactor->name ?> </td>
</tr>
<?php if ($devices->parent_id) : ?>
<tr>
<th>Parent Device</th>
<td><a href="<?= self::getUrl("Device", "Detail", ["id" => $devices->parent_id]) ?>"><?= $DevicesAll[$devices->parent_id]?></a></td>
</tr>
<?php endif; ?>
<tr>
<th>Mac Adresse</th>
<td><?= $devices->mac ?> </td>
@@ -221,6 +230,7 @@ if ($devices->power != "0.0") {
<th>Leistung</th>
<td><?= $power ?> Watt</td>
</tr>
<tr>
<th>Bemerkung</th>
<td><?= nl2br($devices->comment) ?> </td>