WIP Voiceplan Zones
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Dashboard")?>"><?=MFAPPNAME_SLUG?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Voiceplan")?>">Sprachtarife</a></li>
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Voiceplan", "view", ["id" => $voiceplan->id])?>"></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Voiceplan", "view", ["id" => $zone->voiceplan_id])?>">Sprachtarif <?=$zone->voiceplan->name?></a></li>
|
||||
<li class="breadcrumb-item active">Destinationen Tarifzone <?=$zone->name?></li>
|
||||
<li class="breadcrumb-item active"><?=($plan->id) ? "Destination ".$destination->destination." bearbeiten" : "Neu" ?></li>
|
||||
</ol>
|
||||
</div>
|
||||
@@ -31,19 +32,16 @@
|
||||
<input type="hidden" name="id" value="<?=$destination->id?>" />
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="voiceplan_id">Tarifpaket</label>
|
||||
<label class="col-lg-2 col-form-label" for="voiceplanzone_id">Tarifzone</label>
|
||||
<div class="col-lg-10">
|
||||
<select name="voiceplan_id" class="form-control">
|
||||
<option value=""></option>
|
||||
<?php if($destination && $destination->voiceplan_id): ?>
|
||||
<?php foreach($voiceplans as $vp): ?>
|
||||
<option value="<?=$vp->id?>" <?=($destination->voiceplan_id == $vp->id) ? "selected='selected'" : ""?>><?=$vp->name?></option>
|
||||
<?php endforeach; ?>
|
||||
<?php elseif($voiceplan): ?>
|
||||
<?php foreach($voiceplans as $vp): ?>
|
||||
<option value="<?=$vp->id?>" <?=($vp->id == $voiceplan->id) ? "selected='selected'" : ""?>><?=$vp->name?></option>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<select name="voiceplanzone_id" class="form-control">
|
||||
<?php foreach($zones as $zone): ?>
|
||||
<?php if($destination->id): ?>
|
||||
<option value="<?=$zone->id?>" <?=($zone->id == $destination->voiceplanzone_id) ? "selected='selected'" : ""?>><?=$zone->voiceplan->name?> - <?=$zone->name?></option>
|
||||
<?php else: ?>
|
||||
<option value="<?=$zone->id?>" <?=($zone->id == $zone_id) ? "selected='selected'" : ""?>><?=$zone->voiceplan->name?> - <?=$zone->name?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -62,27 +60,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="purchase_price">Einkaufspreis *</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" name="purchase_price" id="purchase_price" value="<?=$destination->purchase_price?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="price">Verkaufspreis *</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" name="price" id="price" value="<?=$destination->price?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="name">Taktung *</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" name="increment" id="increment" value="<?=($destination->increment_first && $destination->increment) ? $destination->increment_first."/".$destination->increment : ""?>" placeholder="60/30" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user