98 lines
4.4 KiB
PHP
98 lines
4.4 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) ? "bearbeiten" : "Neu" ?></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">
|
|
<div class="card-body">
|
|
<h4 class="header-title mb-2"><?=($plan->id) ? "Sprachtarifpaket bearbeiten" : "Neues Sprachtarifpaket"?></h4>
|
|
|
|
<form class="form-horizontal" method="post" action="<?=self::getUrl("Voiceplan", "save")?>" enctype="multipart/form-data">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
|
|
<input type="hidden" name="id" value="<?=$plan->id?>" />
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="name">Name *</label>
|
|
<div class="col-lg-10">
|
|
<input type="name" class="form-control" name="name" id="name" value="<?=$plan->name?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="description">Beschreibung</label>
|
|
<div class="col-lg-10">
|
|
<textarea class="form-control" name="description" id="description" /><?=htmlentities($plan->description)?></textarea>
|
|
</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="increment" class="form-control" name="increment" id="increment" value="<?=($plan->increment_first && $plan->increment) ? $plan->increment_first."/".$plan->increment : ""?>" placeholder="60/30" />
|
|
</div>
|
|
</div-->
|
|
|
|
<hr />
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="first">Zonen und Destinationen aus bestehendem Tarifpaket kopieren</label>
|
|
<div class="col-lg-10">
|
|
<select name="copy_from_plan_id" class="form-control">
|
|
<option value=""></option>
|
|
<?php foreach(VoiceplanModel::getAll() as $voiceplan): ?>
|
|
<option value="<?=$voiceplan->id?>"><?=$voiceplan->name?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="first">oder Zonen und Destinationen neu importieren</label>
|
|
<div class="col-lg-10">
|
|
Zonen File: <input type="file" class="form-control" name="voiceplanzonefile" />
|
|
Destinations File: <input type="file" class="form-control" name="voiceplandestinationfile" />
|
|
<?php if($voiceplan->id): ?><small class="text-danger">ACHTUNG: Bestehende Zonen und Destinationen werden gelöscht!</small><?php endif; ?>
|
|
</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"); ?>
|