WIP Voiceplan Zones
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<li class="breadcrumb-item active"><?=$plan->name?></li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title">Sprachtarife</h4>
|
||||
<h4 class="page-title">Tarifzonen</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,10 +30,10 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="float-left">
|
||||
<h4 class="header-title">Destinations für Sprachtarifpaket <?=$plan->name?></h4>
|
||||
<h4 class="header-title">Tarifzonen für Sprachtarifpaket <?=$plan->name?></h4>
|
||||
</div>
|
||||
<div class="float-right">
|
||||
<a class="btn btn-primary mb-2" href="<?=self::getUrl("Voiceplandestination", "add", ["voiceplan_id" => $plan->id])?>"><i class="fas fa-plus"></i> Neue Destination anlegen</a>
|
||||
<a class="btn btn-primary mb-2" href="<?=self::getUrl("Voiceplanzone", "add", ["voiceplan_id" => $plan->id])?>"><i class="fas fa-plus"></i> Neue Tarifzone anlegen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,8 +43,8 @@
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<tr>
|
||||
<th>Destination</th>
|
||||
<th>Prefix</th>
|
||||
<th>Zone</th>
|
||||
<th>Anzahl Prefixes</th>
|
||||
<th>Taktung</th>
|
||||
<th>Einkaufspreis</th>
|
||||
<th>Verkaufspreis</th>
|
||||
@@ -52,19 +52,19 @@
|
||||
<th>Bearbeitet</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php foreach($destinations as $destination): ?>
|
||||
<?php foreach($zones as $zone): ?>
|
||||
<tr>
|
||||
<td><?=$destination->destination?></td>
|
||||
<td><?=$destination->prefix?></td>
|
||||
<td><?=($destination->increment_first && $destination->increment) ? "$destination->increment_first"."/".$destination->increment : ""?></td>
|
||||
<td><?=$destination->purchase_price?></td>
|
||||
<td><?=$destination->price?></td>
|
||||
<td><a href="<?=self::getUrl("Voiceplanzone", "view", ["id" => $zone->id])?>"><?=$zone->name?></a></td>
|
||||
<td><?=count($zone->destinations)?></td>
|
||||
<td><?=($zone->increment_first && $zone->increment) ? $zone->increment_first."/".$zone->increment : ""?></td>
|
||||
<td><?=$zone->purchase_price?></td>
|
||||
<td><?=$zone->price?></td>
|
||||
<td><?=date("d.m.Y H:i", $plan->create)?> (<?=$plan->creator->name?>)</td>
|
||||
<td><?=date("d.m.Y H:i", $plan->edit)?> (<?=$plan->editor->name?>)</td>
|
||||
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("Voiceplandestination", "view", ["id" => $destination->id])?>"><i class="far fa-eyes" title="Anzeigen"></i></a>
|
||||
<a href="<?=self::getUrl("Voiceplandestination", "edit", ["id" => $destination->id])?>"><i class="far fa-edit" title="Bearbeiten"></i></a>
|
||||
<a href="<?=self::getUrl("Voiceplandestination", "delete", ["id" => $destination->id])?>" onclick="if(!confirm('Destination wirklich löschen?')) return false;" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
<a href="<?=self::getUrl("Voiceplanzone", "view", ["id" => $zone->id])?>"><i class="far fa-eyes" title="Prefixes anzeigen"></i></a>
|
||||
<a href="<?=self::getUrl("Voiceplanzone", "edit", ["id" => $zone->id])?>"><i class="far fa-edit" title="Zone bearbeiten"></i></a>
|
||||
<a href="<?=self::getUrl("Voiceplanzone", "delete", ["id" => $zone->id])?>" onclick="if(!confirm('Tarifzone wirklich löschen?')) return false;" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user