aboutsummaryrefslogtreecommitdiff
path: root/174bg/manager
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-31 09:26:53 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-31 09:26:53 +0100
commit7a0648851541d1f1ebc2b5ac9bced161841a5a5e (patch)
tree2f72939ac64fbe27288ab0b40d620dbb209b762d /174bg/manager
parent6cbd7553bc383c73b3e4a87b6848f66322c0e314 (diff)
downloadunnamed-group-7a0648851541d1f1ebc2b5ac9bced161841a5a5e.tar
unnamed-group-7a0648851541d1f1ebc2b5ac9bced161841a5a5e.tar.gz
unnamed-group-7a0648851541d1f1ebc2b5ac9bced161841a5a5e.tar.bz2
unnamed-group-7a0648851541d1f1ebc2b5ac9bced161841a5a5e.tar.xz
unnamed-group-7a0648851541d1f1ebc2b5ac9bced161841a5a5e.zip
add staff roles display to user profile
Diffstat (limited to '174bg/manager')
-rw-r--r--174bg/manager/public/index.html17
1 files changed, 17 insertions, 0 deletions
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 @@
<div><b>Branch:</b> <span id="174bg-branch"></span></div>
<div><b>Rank Number:</b> <span id="174bg-rank-number"></span></div>
<div><b>Rank Name:</b> <span id="174bg-rank-name"></span></div>
+ <div><b>Staff Roles:</b> <span id="174bg-staff-roles"></span></div>
<div id="profile-warning" hidden>
⚠️ Your profile is incomplete. Message an officer ASAP!
</div>
@@ -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 {