Added adb_netzgebiet_id to Network/Form

This commit is contained in:
Frank Schubert
2024-01-05 19:48:03 +01:00
parent d2e7b09747
commit 97d3dae8ac
3 changed files with 22 additions and 5 deletions

View File

@@ -39,10 +39,10 @@
<div class="row">
<div class="col">
<a href="https://thetool.xinon.at/xfarm/" class="btn btn-primary" target="_blank"><i class="far fa-arrows-to-circle fa-fw"></i> AR-Merge / Fibu Konten Import</a>
<a href="<?=self::getUrl("Address", "exportBmd")?>" class="ml-2 btn btn-outline-primary"><i class="fas fa-down-from-dotted-line fa-fw"></i> Inkrementellen BMD-Export starten</a>
<a href="<?=self::getUrl("Address", "exportBmd")?>" class="ml-2 btn btn-outline-primary" onclick="if(!confirm('Wirklich inkrementellen BMD-Export starten?')) return false;"><i class="fas fa-down-from-dotted-line fa-fw"></i> Inkrementellen BMD-Export starten</a>
<?php if($last_bmd_export): ?><small>Letzter Export: <?=date("d.m.Y H:i", $last_bmd_export)?></small><?php endif; ?>
<a href="<?=self::getUrl("Address", "exportBmd", ["type" => "full"])?>" class="btn btn-outline-danger float-right"><i class="fas fa-down-from-line fa-fw"></i> Vollen BMD-Export starten</a>
<a href="<?=self::getUrl("Address", "exportBmd", ["type" => "full"])?>" class="btn btn-outline-danger float-right" onclick="if(!confirm('Wirklich vollständigen BMD-Export starten?')) return false;"><i class="fas fa-down-from-line fa-fw"></i> Vollen BMD-Export starten</a>
</div>
</div>
</div>

View File

@@ -52,7 +52,7 @@
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="sytemowner_action_status">Workorder Filter (Admins)</label>
<div class="col-lg-10">
<select class="select2 form-control " name="sytemowner_action_status" id="sytemowner_action_status">
<select class="form-control" name="sytemowner_action_status" id="sytemowner_action_status">
<option></option>
<option value="pipework_needed" <?=($network->sytemowner_action_status == "pipework_needed") ? "selected='selected'" : ""?>>Tiefbau ausständig</option>
<option value="building_connected" <?=($network->sytemowner_action_status == "building_connected") ? "selected='selected'" : ""?>>Tiefbau erledigt</option>
@@ -61,6 +61,19 @@
</div>
</div>
<hr />
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="adb_netzgebiet_id">ADB Netzgebiet</label>
<div class="col-lg-10">
<select class="select2 form-control " name="adb_netzgebiet_id" id="adb_netzgebiet_id">
<option></option>
<?php foreach(ADBNetzgebietModel::getAll() as $adbn): ?>
<option value="<?=$adbn->id?>" <?=($network->adb_netzgebiet_id == $adbn->id) ? "selected='selected'" : ""?>><?=$adbn->name?></option>
<?php endforeach; ?>
</select>
</div>
</div>
</div>
</div>
@@ -93,11 +106,14 @@
</div>
<script type="text/javascript">
$("#parent_id").select2({
$("#adb_netzgebiet_id").select2({
allowClear: true,
placeholder: ""
});
$("#owner_id").select2({
allowClear: true,
placeholder: ""
});
$("#addresstypes").select2();
</script>
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>

View File

@@ -75,6 +75,7 @@ class NetworkController extends mfBaseController {
$data['owner_id'] = $r->owner_id;
$data['name'] = $r->name;
$data['note'] = $r->note;
$data['adb_netzgebiet_id'] = $r->adb_netzgebiet_id;
if($r->sytemowner_action_status) {
$data['sytemowner_action_status'] = $r->sytemowner_action_status;