From f9558d4701f29312d3deb20e6cf8f7613babc39e Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 2 Mar 2026 23:40:53 -0500 Subject: [PATCH] Assets: Added IPv6 Address to assets list and interface list, Updated UI of add / edit network interfaces updated icons wording and bettr arrangement --- agent/asset_details.php | 5 +- agent/assets.php | 14 +- agent/modals/asset/asset_interface_add.php | 116 ++++++------- agent/modals/asset/asset_interface_edit.php | 180 ++++++++++---------- 4 files changed, 158 insertions(+), 157 deletions(-) diff --git a/agent/asset_details.php b/agent/asset_details.php index 6b15bd2a..fb6c3411 100644 --- a/agent/asset_details.php +++ b/agent/asset_details.php @@ -583,7 +583,10 @@ if (isset($_GET['asset_id'])) { - + + +
+ diff --git a/agent/assets.php b/agent/assets.php index a1b46543..6c29a4c3 100644 --- a/agent/assets.php +++ b/agent/assets.php @@ -550,7 +550,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $asset_model = nullable_htmlentities($row['asset_model']); $asset_serial = nullable_htmlentities($row['asset_serial']); if ($asset_serial) { - $asset_serial_display = "$asset_serial"; + $asset_serial_display = "$asset_serial"; } else { $asset_serial_display = "-"; } @@ -560,12 +560,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } else { $asset_os_display = "-"; } - $asset_ip = nullable_htmlentities($row['interface_ip']); - if ($asset_ip) { - $asset_ip_display = $asset_ip; - } else { - $asset_ip_display = "-"; - } + $asset_ip = getFallBack(nullable_htmlentities($row['interface_ip'])); $asset_ipv6 = nullable_htmlentities($row['interface_ipv6']); $asset_nat_ip = nullable_htmlentities($row['interface_nat_ip']); $asset_mac = nullable_htmlentities(getFallBack($row['interface_mac'])); @@ -703,7 +698,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - + + +
+ diff --git a/agent/modals/asset/asset_interface_add.php b/agent/modals/asset/asset_interface_add.php index dab07030..468db9d2 100644 --- a/agent/modals/asset/asset_interface_add.php +++ b/agent/modals/asset/asset_interface_add.php @@ -92,63 +92,6 @@ ob_start();
- -
- -
-
- -
- -
-
- - -
- -
-
- -
- -
-
- -
-
-
-
- - -
- -
-
- -
- -
-
- - -
- -
-
- -
- -
-
-
@@ -173,11 +116,68 @@ ob_start();
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+ + +
+ +
+
+ +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+
- +
-
-
- - -
- -
-
- -
- -
-
- - > -
-
-
-
- - -
- -
-
- -
- -
-
- - -
- -
-
- -
- -
-
-
@@ -262,12 +173,101 @@ ob_start();
+ +
+ +
+
+ +
+ +
+
+ + > +
+
+
+
+ + +
+ +
+
+ +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+
- +