Show network ID when editing items

Shows the database object ID when editing networks on the Notes tab, to allow for use in the API.
This commit is contained in:
wrongecho
2024-09-11 11:17:54 +01:00
parent 2e202df3ff
commit 8df3896f69
2 changed files with 159 additions and 157 deletions

View File

@@ -151,6 +151,7 @@
<textarea class="form-control" rows="12" id="editNetworkNotes" name="notes" placeholder="Enter some notes"></textarea>
</div>
<p class="text-muted text-right" id="showNetworkId"></p>
</div>
</div>

View File

@@ -16,6 +16,7 @@ function populateNetworkEditModal(client_id, network_id) {
// Populate the network modal fields
document.getElementById("editNetworkHeader").innerText = network.network_name;
document.getElementById("editNetworkId").value = network_id;
document.getElementById("showNetworkId").innerText = "Network ID: " + network_id;
document.getElementById("editNetworkName").value = network.network_name;
document.getElementById("editNetworkDescription").value = network.network_description;
document.getElementById("editNetworkVlan").value = network.network_vlan;