showing networks in Product/Index list

This commit is contained in:
Frank Schubert
2021-07-05 19:53:31 +02:00
parent 110c3fe71d
commit 002c2565eb

View File

@@ -33,7 +33,7 @@
<table class="table table-striped table-hover">
<tr>
<th>Fremdprodukt</th>
<th>Netzgebiete</th>
<th>Gruppe</th>
<th>Name</th>
<th>Technologie</th>
@@ -46,14 +46,14 @@
</tr>
<?php foreach($products as $product): ?>
<tr>
<td><?=($product->external == 1) ? "<i class='fas fa-check text-success'></i>" : ""?></td>
<td><?=(count($product->networks)) ? array_shift($product->networks)->name . ((count($product->networks) > 1) ? ", ..." : "") : ""?></td>
<td><?=$product->productgroup->name?></td>
<td><?=$product->name?></td>
<td><?=$product->producttech->name?> (<?=$product->producttech->rtrcode?>)</td>
<td><?=__($product->producttech->customer_type)?></td>
<td><?=$product->price?></td>
<td><?=$product->billing_period?>x Jährlich</td>
<td><?=$product->sla->id?></td>
<td><?=$product->sla->name?></td>
<td><?=$product->ivt_id?></td>
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
<a href="<?=self::getUrl("Product", "edit", ["id" => $product->id])?>"><i class="far fa-edit" title="Produkt Bearbeiten"></i></a>