From 2da2b257a52b804272450b8bdaf6be2dde4c2a1f Mon Sep 17 00:00:00 2001 From: jessikitty Date: Wed, 29 Apr 2026 14:24:55 +1000 Subject: [PATCH] fix: relocate AD Details panel under device assignment on user 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 #User_Show_AssignedDevices on the user page, falling back to after #User_Show_Subjects if the assignment section isn't present. --- Features/UserUIExtension.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Features/UserUIExtension.cs b/Features/UserUIExtension.cs index a81eb11..8f33153 100644 --- a/Features/UserUIExtension.cs +++ b/Features/UserUIExtension.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 Details

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