Added assigned_to filter to Pipework

This commit is contained in:
Frank Schubert
2025-04-17 14:38:25 +02:00
parent 68ef494c9d
commit 81b8c307c0
4 changed files with 30 additions and 14 deletions

View File

@@ -63,6 +63,18 @@
<?php endforeach; ?>
</select>
</div>
<?php if($me->is("Admin")): ?>
<div class="col-1">
<label class="form-label" for="filter_pipeworker_id">Zugeteilt an</label>
<select name="filter[pipeworker_id]" id="filter_pipeworker_id" class="form-control">
<option></option>
<?php foreach($pipeworkers as $address): ?>
<option value="<?=$address->id?>" <?=(is_array($filter) && array_key_exists("pipeworker_id", $filter) && $filter['pipeworker_id'] == $address->id) ? "selected='selected'" : ""?>><?=$address->getCompanyOrName()?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>
<div class="col-2">
<label class="form-label" for="filter_status_id">Objektstatus</label>