174 lines
7.7 KiB
PHP
174 lines
7.7 KiB
PHP
<?php
|
|
|
|
if($unit->id && !array_key_exists($unit->hausnummer->netzgebiet_id, $my_adb_networks)) {
|
|
$this->setFlash("Keine Berechtigung", "error");
|
|
mfBaseController::redirect("AddressDB");
|
|
}
|
|
|
|
?>
|
|
<?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("AddressDB")?>">GWR / AddressDB</a></li>
|
|
<li class="breadcrumb-item"><a href="<?=self::getUrl("AddressDB", "view", ["id" => $unit->hausnummer_id])?>"><?=$unit->hausnummer->getAddress()?></a></li>
|
|
<li class="breadcrumb-item active"><?=($unit->id) ? "bearbeiten" : "Neu" ?></li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Wohneinheit</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"><?=($unit->id) ? "Wohneinheit bearbeiten" : "Neue Adresse"?></h4>
|
|
|
|
<form class="form-horizontal" method="post" action="<?=self::getUrl("ADBWohneinheit", "save")?>">
|
|
<input type="hidden" name="id" value="<?=$unit->id?>" />
|
|
<div class="card">
|
|
<div class="card-body">
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label">Addresse </label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" value="<?=$unit->hausnummer->getAddress()?><?=($unit->hausnummer->rimo_id) ? " - ".$unit->hausnummer->rimo_id : ""?>" disabled="disabled" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="oaid">OAID</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" value="<?=$unit->oaid?>" disabled="disabled" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="extref">Rimo External ID</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="extref" id="extrefaid" value="<?=$unit->extref?>" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="zusatz">Zusatzbezeichnung</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="zusatz" id="zusatz" value="<?=$unit->zusatz?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="block">Block</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="block" id="block" value="<?=$unit->block?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="stiege">Stiege</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="stiege" id="stiege" value="<?=$unit->stiege?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="stock">Stock</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="stock" id="stock" value="<?=$unit->stock?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="tuer">Tür</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="tuer" id="tuer" value="<?=$unit->tuer?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="bezeichner">Bezeichner</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" name="bezeichner" id="bezeichner" value="<?=$unit->bezeichner?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label">Patchposition</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" value="<?=$unit->getPatchEqString?>" disabled="disabled" />
|
|
</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>
|
|
|
|
<div class="row mt-2">
|
|
<div class="col">
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
<table class="table table-sm table-striped">
|
|
<tr>
|
|
<td colspan="2"><h4>FTU</h4></td>
|
|
</tr><tr>
|
|
<th>FTU Name:</th>
|
|
<td class="text-monospace"><?=$unit->ftu_data["name"]?>
|
|
</tr><tr>
|
|
<th>FTU External ID</th>
|
|
<td class="text-monospace"><?=$unit->ftu_data["id"]?>
|
|
</tr><tr>
|
|
<td colspan="2"><h4>Workorder</h4></td>
|
|
</tr><tr>
|
|
<th>Name</th>
|
|
<td class="text-monospace"><?=$unit->rimo_workorder->rimo_name?></td>
|
|
</tr><tr>
|
|
<th>External ID</th>
|
|
<td class="text-monospace"><?=$unit->rimo_workorder->rimo_id?></td>
|
|
</tr><tr>
|
|
<th>Status</th>
|
|
<td><?=$unit->rimo_workorder->rimo_status?></td>
|
|
</tr><tr>
|
|
<th>Erstellt</th>
|
|
<td class="text-monospace"><?=(is_object($unit->rimo_workorder)) ? date("d.m.Y H:i:s", $unit->rimo_workorder->create) : ""?></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|