From 7a0648851541d1f1ebc2b5ac9bced161841a5a5e Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Sun, 31 May 2026 09:26:53 +0100 Subject: add staff roles display to user profile --- 174bg/manager/public/index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '174bg/manager/public') diff --git a/174bg/manager/public/index.html b/174bg/manager/public/index.html index 71bc262..064913f 100644 --- a/174bg/manager/public/index.html +++ b/174bg/manager/public/index.html @@ -44,6 +44,7 @@
Branch:
Rank Number:
Rank Name:
+
Staff Roles:
@@ -151,6 +152,22 @@ anyMissing = true; } + // Staff roles — optional list; show "none" when empty (not MISSING) + const staffSpan = document.getElementById("174bg-staff-roles"); + const staffRoles = record["StaffRoles"]; + const staffList = Array.isArray(staffRoles) + ? staffRoles + : staffRoles + ? [staffRoles] + : []; + if (staffList.length > 0) { + staffSpan.textContent = staffList.join(", "); + staffSpan.style.color = ""; + } else { + staffSpan.textContent = "none"; + staffSpan.style.color = ""; + } + if (anyMissing) { document.getElementById("profile-warning").hidden = false; } else { -- cgit v1.2.3