Added adding POPs
This commit is contained in:
@@ -65,21 +65,21 @@
|
||||
<ul class="nav nav-pills navtab-bg nav-justified">
|
||||
<li class="nav-item"><a class="nav-link active" href="#net-detail-<?=$network->id?>-detail" data-toggle="tab" aria-expanded="false">Details</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#net-detail-<?=$network->id?>-pops" data-toggle="tab" aria-expanded="false">POPs</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#net-detail-<?=$network->id?>-third" data-toggle="tab" aria-expanded="false">Noawos</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#net-detail-<?=$network->id?>-third" data-toggle="tab" aria-expanded="false">Berechtigungen</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="net-detail-<?=$network->id?>-detail" class="tab-pane show active">
|
||||
<h4>Details zu <strong><?=$network->name?></strong></h4>
|
||||
<table class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<table class="table table-bordered">
|
||||
<tr class="bg-white">
|
||||
<th>Name</th>
|
||||
<td><?=$network->name?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="bg-white">
|
||||
<th>Besitzer</th>
|
||||
<td><?=$network->owner->getCompanyOrName()?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="bg-white">
|
||||
<th>Interne Notiz</th>
|
||||
<td><?=nl2br($network->note)?></td>
|
||||
</tr>
|
||||
@@ -89,15 +89,33 @@
|
||||
<h4>POPs in <strong><?=$network->name?></strong></h4>
|
||||
|
||||
<?php if(is_array($network->pops) && count($network->pops)): ?>
|
||||
|
||||
<table class="table" >
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>GPS (Breite, Länge)</th>
|
||||
<th>Standortinfo</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php foreach($network->pops as $pop): ?>
|
||||
<tr>
|
||||
<td><?=$pop->name?></td>
|
||||
<td><?=$pop->gps_lat?>, <?=$pop->gps_long?></td>
|
||||
<td><?=$pop->location?></td>
|
||||
<td class="controls" style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("Pop", "edit", ["id" => $pop->id])?>"><i class="far fa-edit" title="Bearbeiten"></i></a>
|
||||
<a href="<?=self::getUrl("Pop", "delete", ["id" => $pop->id])?>" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<p><i>Keine POPs vorhanden</i></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<a class="btn btn-primary" href="<?=self::getUrl("Pop", "add")?>"><i class="fas fa-plus"></i> Neuen POP anlegen</a>
|
||||
<a class="btn btn-primary" href="<?=self::getUrl("Pop", "add", ['network_id' => $network->id])?>"><i class="fas fa-plus"></i> Neuen POP anlegen</a>
|
||||
</div>
|
||||
<div id="net-detail-<?=$network->id?>-third" class="tab-pane">
|
||||
<h4>3</h4>
|
||||
<h4>Berechtigungen</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user