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

@@ -22,6 +22,10 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "device-detail") {
} else {
$cancelUrl = self::getUrl("Device");
}
foreach ($devices as $Device) {
$Devices[$Device->id] = $Device->name;
}
asort($Devices);
?>
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
type="text/css"/>
@@ -80,6 +84,17 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "device-detail") {
</select>
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="parent_id">Parent </label>
<div class="col-lg-10">
<select class="select2 form-control " name="parent_id" id="parent_id">
<option value="">&nbsp;</option>
<?php foreach ($Devices as $key => $value): ?>
<option value="<?= $key ?>" <?= ($device->parent_id == $key) ? "selected='selected'" : "" ?>><?= ($value) ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="pop_id">Pop</label>
<div class="col-lg-10">