Added filter to Voiceplan
This commit is contained in:
@@ -21,10 +21,52 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
<h4 class="header-title mb-3">Filter</h4>
|
||||
|
||||
<form method="get" action="<?=self::getUrl("Voiceplan", "view")?>">
|
||||
<input type="hidden" name="id" value="<?=$plan->id?>" />
|
||||
<div class="row">
|
||||
|
||||
<div class="col-2">
|
||||
<label class="form-label" for="filter_name">Zone</label>
|
||||
<input type="text" class="form-control" name="filter[name]" id="filter_name" value="<?=$filter['name']?>" />
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<label class="form-label" for="filter_prefix">Destination Prefix</label>
|
||||
<input type="text" class="form-control" name="filter[prefix]" id="filter_prefix" value="<?=$filter['prefix']?>" />
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<label class="form-label" for="filter_destination">Verkaufspreis</label>
|
||||
<select name="filter[price_difference]" class="form-control">
|
||||
<option></option>
|
||||
<option value="same">Stimmt mit Multiplikator überein</option>
|
||||
<option value="diff">Weicht von Multiplikator ab</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<button type="submit" class="btn btn-primary">Filter anwenden</button>
|
||||
<a class="btn btn-secondary" href="<?=self::getUrl("Voiceplan", "view", ["id" => $plan->id, "resetFilter" => 1])?>">Filter zurücksetzen</a>
|
||||
</div>
|
||||
<!--<div class="col">
|
||||
<button class="btn btn-info" type="button" onclick="refreshMap()"><i class="far fa-map"></i> Auf Karte anzeigen</button>
|
||||
</div>-->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
<div class="row">
|
||||
@@ -55,8 +97,12 @@
|
||||
<?php foreach($zones as $zone): ?>
|
||||
<tr>
|
||||
<td><a href="<?=self::getUrl("Voiceplanzone", "view", ["id" => $zone->id])?>"><?=$zone->name?></a></td>
|
||||
<td><?=(count($zone->destinations) > 1) ? count($zone->destinations)." Destinations" : "<spam class='text-monospace'>+".$zone->destinations[0]->prefix."</span>"?></td>
|
||||
<td><?=($zone->increment_first && $zone->increment) ? $zone->increment_first."/".$zone->increment : ""?></td>
|
||||
<?php if(count($zone->destinations) > 1): ?>
|
||||
<td title="<?php foreach($zone->destinations as $d): ?>+<?=$d->prefix."\n"?><?php endforeach; ?>"><?=count($zone->destinations)?> Destinations</td>
|
||||
<?php else: ?>
|
||||
<td><spam class='text-monospace'>+<?=$zone->destinations[0]->prefix?></span></td>
|
||||
<?php endif; ?>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user