fix: add test role select to sidebar — was missing from template
This commit is contained in:
parent
84f8350700
commit
f6632dddfc
Binary file not shown.
Binary file not shown.
|
|
@ -43,6 +43,18 @@
|
|||
<div id="adminLinks" class="p-3">
|
||||
<script>if(!(JSON.parse(localStorage.getItem('ds_user')||'{}').is_super_admin))document.currentScript.parentElement.style.display='none';</script>
|
||||
<div class="border-t border-white/[0.08] mb-3"></div>
|
||||
<div class="px-3 pb-3">
|
||||
<label class="block text-xs font-medium mb-1.5" style="color:var(--ds-tx3)">Test as role</label>
|
||||
<select id="testRoleSelect" onchange="setTestRole(this.value)"
|
||||
class="w-full px-2 py-1.5 rounded text-xs focus:outline-none"
|
||||
style="background:var(--ds-bg);border:1px solid var(--ds-bd);color:var(--ds-tx2)">
|
||||
<option value="">— self (super admin) —</option>
|
||||
<option value="ib">IB Advisor</option>
|
||||
<option value="buyer">Buyer</option>
|
||||
<option value="seller">Seller</option>
|
||||
<option value="advisor">Advisor</option>
|
||||
</select>
|
||||
</div>
|
||||
<a href="/admin" class="sidebar-link {{if eq .ActiveNav "admin"}}active{{end}} flex items-center gap-3 px-3 py-2.5 rounded-lg text-base font-medium text-[#94a3b8] transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/></svg>
|
||||
Admin</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue