Added pop_id filter to Patching/Index

This commit is contained in:
Frank Schubert
2021-09-23 21:28:00 +02:00
parent 8a9e29087a
commit dd2d834c92
3 changed files with 28 additions and 9 deletions

View File

@@ -35,6 +35,22 @@
</select>
</div>
<div class="col-1">
<label class="form-label" for="filter_pop_id">POP</label>
<select name="filter[pop_id]" id="filter_pop_id" class="form-control">
<option></option>
<?php foreach($mynetworks as $fnet): ?>
<?php if(is_array($fnet->pops) && count($fnet->pops)): ?>
<optgroup label="<?=$fnet->name?>">
<?php foreach($fnet->pops as $pop): ?>
<option value="<?=$pop->id?>" <?=($filter['pop_id'] == $pop->id) ? "selected='selected'" : ""?>><?=$pop->name?></option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
<?php endforeach; ?>
</select>
</div>
<div class="col-1">
<label class="form-label" for="filter_patched">Patchstatus</label>
<select name="filter[patched]" id="filter_patched" class="form-control">
@@ -119,7 +135,7 @@
<th>Patchposition ODF</th>
<th>ODF Port</th>
<th>Typ</th>
<th>Splitte / Gerät</th>
<th>Splitter / Gerät</th>
<th>Port</th>
<th>Gepatched</th>
<th>Von</th>