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

@@ -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"); ?>