95 lines
4.3 KiB
PHP
95 lines
4.3 KiB
PHP
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/header.php"); ?>
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box">
|
|
<div class="page-title-right">
|
|
<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 active"><?=($plan->id) ? "Tarifzone ".$destination->destination." bearbeiten" : "Neue Tarifzone" ?></li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Sprachtarife</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card bg-light">
|
|
<div class="card-body">
|
|
<h4 class="header-title mb-2"><?=($zone->id) ? "Zone bearbeiten" : "Neue Zone"?></h4>
|
|
|
|
<form class="form-horizontal" method="post" action="<?=self::getUrl("Voiceplanzone", "save")?>">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
|
|
<input type="hidden" name="id" value="<?=$zone->id?>" />
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="name">Sprachtarif *</label>
|
|
<div class="col-lg-10">
|
|
<select name="voiceplan_id" class="form-control">
|
|
<?php foreach(VoiceplanModel::getAll() as $vp): ?>
|
|
<?php if($voiceplan_id): ?>
|
|
<option value="<?=$vp->id?>" <?=($vp->id == $voiceplan_id) ? "selected='selected'" : ""?>><?=$vp->name?></option>
|
|
<?php else: ?>
|
|
<option value="<?=$vp->id?>" <?=($vp->id == $zone->voiceplan_id) ? "selected='selected'" : ""?>><?=$vp->name?></option>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="name">Tarifzone Name *</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="name" id="name" value="<?=$zone->name?>" />
|
|
</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="<?=$zone->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="<?=$zone->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="<?=($zone->increment_first && $zone->increment) ? $zone->increment_first."/".$zone->increment : ""?>" placeholder="60/30" />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2"></label>
|
|
<div class="col-lg-10">
|
|
<button type="submit" class="btn btn-primary">Speichern</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|