From ea1b3d59427de2cfbe1288601e7effb369b17635 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Wed, 29 Apr 2026 10:31:39 +1000 Subject: [PATCH] fix: relocate AD Compare panel under user assignment on device page UIExtension content renders at the bottom of _Layout.cshtml by design. Added wrapper div with ID and jQuery script to move the panel after the user assignment .status div (#Device_Show_User) on the device page. --- Features/DeviceUIExtension.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Features/DeviceUIExtension.cs b/Features/DeviceUIExtension.cs index 094c05d..164c810 100644 --- a/Features/DeviceUIExtension.cs +++ b/Features/DeviceUIExtension.cs @@ -24,6 +24,9 @@ namespace Disco.Plugins.ADCompare.Features return Nothing(); var html = new StringBuilder(); + + // Wrapper div with unique ID for relocation + html.Append("
"); html.Append("
"); html.Append("

"); html.Append(" AD Compare

"); @@ -152,7 +155,19 @@ namespace Disco.Plugins.ADCompare.Features html.Append("
"); } - html.Append("
"); + html.Append(""); // form-group + html.Append(""); // wrapper + + // Script to relocate panel under the user assignment section + html.Append(""); + return Literal(html.ToString()); }