admin-users.html (26274B)
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> 6 <title>Admin users mockup</title> 7 <link rel="stylesheet" href="../../app/shared/style/global.css" /> 8 <link rel="stylesheet" href="../../app/shared/component/select-menu.css" /> 9 <link rel="stylesheet" href="../../app/shared/component/user-menu.css" /> 10 <link rel="stylesheet" href="./mockups.css" /> 11 </head> 12 <body> 13 <header class="topbar"> 14 <a class="brand" href="./admin-dashboard.html"> 15 <svg class="brand-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 16 <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" /> 17 </svg> 18 <span class="brand-name">Auth</span> 19 </a> 20 <div class="topbar-actions"> 21 <button class="mobile-nav-toggle" type="button" id="mobile-nav-toggle" aria-controls="mobile-navigation" aria-expanded="false" aria-label="Open navigation"> 22 <span class="mobile-nav-toggle-bars" aria-hidden="true"></span> 23 </button> 24 <details class="menu user-menu"> 25 <summary class="menu-trigger" aria-label="Account menu"> 26 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 27 <circle cx="12" cy="12" r="10" /> 28 <circle cx="12" cy="10" r="3" /> 29 <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" /> 30 </svg> 31 </summary> 32 <div class="menu-panel"> 33 <div class="menu-heading"> 34 <span class="menu-heading-title">System Admin</span> 35 <span class="menu-heading-meta">admin@system.test</span> 36 </div> 37 <div class="menu-list"> 38 <a class="menu-item" href="#"> 39 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 40 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 41 <circle cx="12" cy="12" r="3" /> 42 </svg> 43 <span>Account settings</span> 44 </a> 45 <button class="menu-item" type="button" data-user-theme> 46 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 47 <circle cx="12" cy="12" r="4" /> 48 <path d="M12 2v2" /> 49 <path d="M12 20v2" /> 50 <path d="m4.93 4.93 1.41 1.41" /> 51 <path d="m17.66 17.66 1.41 1.41" /> 52 <path d="M2 12h2" /> 53 <path d="M20 12h2" /> 54 <path d="m6.34 17.66-1.41 1.41" /> 55 <path d="m19.07 4.93-1.41 1.41" /> 56 </svg> 57 <span>Theme</span> 58 <span class="menu-value" data-user-theme-value>Auto</span> 59 </button> 60 <a class="menu-item" href="#"> 61 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 62 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /> 63 <path d="m16 17 5-5-5-5" /> 64 <path d="M21 12H9" /> 65 </svg> 66 <span>Sign out</span> 67 </a> 68 </div> 69 </div> 70 </details> 71 </div> 72 </header> 73 74 <div class="mobile-nav" id="mobile-navigation" aria-hidden="true"> 75 <nav class="nav" aria-label="Administration"> 76 <p class="nav-label">Administration</p> 77 <a class="nav-item" href="./admin-dashboard.html"> 78 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 79 <rect x="3" y="3" width="7" height="7" /> 80 <rect x="14" y="3" width="7" height="7" /> 81 <rect x="3" y="14" width="7" height="7" /> 82 <rect x="14" y="14" width="7" height="7" /> 83 </svg> 84 <span>Overview</span> 85 </a> 86 <a class="nav-item" href="./admin-realms.html"> 87 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 88 <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" /> 89 <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" /> 90 <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" /> 91 <path d="M10 6h4" /> 92 <path d="M10 10h4" /> 93 <path d="M10 14h4" /> 94 <path d="M10 18h4" /> 95 </svg> 96 <span>Realms</span> 97 </a> 98 <a class="nav-item" href="./admin-clients.html"> 99 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 100 <rect x="2" y="4" width="20" height="16" rx="2" /> 101 <path d="M10 4v4" /> 102 <path d="M2 8h20" /> 103 <path d="M6 4v4" /> 104 </svg> 105 <span>Clients</span> 106 </a> 107 <a class="nav-item" href="#"> 108 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 109 <path d="M22 12h-4l-3 8-6-16-3 8H2" /> 110 </svg> 111 <span>Sessions</span> 112 </a> 113 <a class="nav-item is-active" href="./admin-users.html" aria-current="page"> 114 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 115 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 116 <circle cx="12" cy="7" r="4" /> 117 </svg> 118 <span>Users</span> 119 </a> 120 <a class="nav-item" href="./admin-system-settings.html"> 121 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 122 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 123 <circle cx="12" cy="12" r="3" /> 124 </svg> 125 <span>Settings</span> 126 </a> 127 </nav> 128 <div class="mobile-nav-divider" aria-hidden="true"></div> 129 <section class="mobile-nav-account" aria-label="Account"> 130 <div class="menu-heading"> 131 <span class="menu-heading-title">System Admin</span> 132 <span class="menu-heading-meta">admin@system.test</span> 133 </div> 134 <div class="menu-list"> 135 <a class="menu-item" href="#"> 136 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 137 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 138 <circle cx="12" cy="12" r="3" /> 139 </svg> 140 <span>Account settings</span> 141 </a> 142 <button class="menu-item" type="button" data-user-theme> 143 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 144 <circle cx="12" cy="12" r="4" /> 145 <path d="M12 2v2" /> 146 <path d="M12 20v2" /> 147 <path d="m4.93 4.93 1.41 1.41" /> 148 <path d="m17.66 17.66 1.41 1.41" /> 149 <path d="M2 12h2" /> 150 <path d="M20 12h2" /> 151 <path d="m6.34 17.66-1.41 1.41" /> 152 <path d="m19.07 4.93-1.41 1.41" /> 153 </svg> 154 <span>Theme</span> 155 <span class="menu-value" data-user-theme-value>Auto</span> 156 </button> 157 <a class="menu-item" href="#"> 158 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 159 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /> 160 <path d="m16 17 5-5-5-5" /> 161 <path d="M21 12H9" /> 162 </svg> 163 <span>Sign out</span> 164 </a> 165 </div> 166 </section> 167 </div> 168 169 <div class="app"> 170 <aside class="sidebar"> 171 <nav class="nav" aria-label="Administration"> 172 <p class="nav-label">Administration</p> 173 <a class="nav-item" href="./admin-dashboard.html"> 174 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 175 <rect x="3" y="3" width="7" height="7" /> 176 <rect x="14" y="3" width="7" height="7" /> 177 <rect x="3" y="14" width="7" height="7" /> 178 <rect x="14" y="14" width="7" height="7" /> 179 </svg> 180 <span>Overview</span> 181 </a> 182 <a class="nav-item" href="./admin-realms.html"> 183 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 184 <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" /> 185 <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" /> 186 <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" /> 187 <path d="M10 6h4" /> 188 <path d="M10 10h4" /> 189 <path d="M10 14h4" /> 190 <path d="M10 18h4" /> 191 </svg> 192 <span>Realms</span> 193 </a> 194 <a class="nav-item" href="./admin-clients.html"> 195 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 196 <rect x="2" y="4" width="20" height="16" rx="2" /> 197 <path d="M10 4v4" /> 198 <path d="M2 8h20" /> 199 <path d="M6 4v4" /> 200 </svg> 201 <span>Clients</span> 202 </a> 203 <a class="nav-item" href="#"> 204 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 205 <path d="M22 12h-4l-3 8-6-16-3 8H2" /> 206 </svg> 207 <span>Sessions</span> 208 </a> 209 <a class="nav-item is-active" href="./admin-users.html" aria-current="page"> 210 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 211 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 212 <circle cx="12" cy="7" r="4" /> 213 </svg> 214 <span>Users</span> 215 </a> 216 <a class="nav-item" href="./admin-system-settings.html"> 217 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 218 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 219 <circle cx="12" cy="12" r="3" /> 220 </svg> 221 <span>Settings</span> 222 </a> 223 </nav> 224 </aside> 225 226 <div class="main"> 227 <main class="content"> 228 <div class="page-header page-header-row"> 229 <div> 230 <div class="breadcrumb"> 231 <span aria-current="page">Users</span> 232 </div> 233 <h1>Users</h1> 234 <p>Home and guest members in this realm.</p> 235 </div> 236 <div class="field"> 237 <span class="field-label" id="users-realm-label">Realm</span> 238 <div class="select" data-select data-value="acme"> 239 <button 240 class="select-trigger" 241 type="button" 242 id="users-realm-trigger" 243 role="combobox" 244 aria-haspopup="listbox" 245 aria-expanded="false" 246 aria-controls="users-realm-listbox" 247 aria-labelledby="users-realm-label" 248 > 249 <span class="select-value">Acme</span> 250 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 251 <path d="m6 9 6 6 6-6" /> 252 </svg> 253 </button> 254 <div class="select-list" id="users-realm-listbox" role="listbox" aria-labelledby="users-realm-label" hidden> 255 <div class="select-option" id="users-realm-global" role="option" aria-selected="false" data-value="global" data-label="All realms"> 256 <span class="select-option-mark" aria-hidden="true"> 257 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 258 <path d="M20 6 9 17l-5-5" /> 259 </svg> 260 </span> 261 <span class="select-option-label">All realms</span> 262 </div> 263 <div class="select-option is-selected" id="users-realm-acme" role="option" aria-selected="true" data-value="acme" data-label="Acme"> 264 <span class="select-option-mark" aria-hidden="true"> 265 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 266 <path d="M20 6 9 17l-5-5" /> 267 </svg> 268 </span> 269 <span class="select-option-label">Acme</span> 270 </div> 271 <div class="select-option" id="users-realm-globex" role="option" aria-selected="false" data-value="globex" data-label="Globex"> 272 <span class="select-option-mark" aria-hidden="true"> 273 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 274 <path d="M20 6 9 17l-5-5" /> 275 </svg> 276 </span> 277 <span class="select-option-label">Globex</span> 278 </div> 279 </div> 280 </div> 281 </div> 282 </div> 283 284 <section class="card" aria-labelledby="user-table-title"> 285 <h2 id="user-table-title" class="sr-only">Realm users</h2> 286 <div class="toolbar toolbar-panel"> 287 <div class="toolbar-search"> 288 <input id="user-search" type="search" aria-label="Search users" placeholder="Search users" /> 289 </div> 290 <div class="toolbar-actions"> 291 <button class="button button-primary" type="button" data-dialog-open="user-add-dialog">Add user</button> 292 </div> 293 </div> 294 295 <table class="table table-linkable"> 296 <thead> 297 <tr> 298 <th scope="col"><span class="sr-only">User</span></th> 299 <th scope="col">User</th> 300 <th scope="col">Membership</th> 301 <th scope="col">Roles</th> 302 <th scope="col">Status</th> 303 </tr> 304 </thead> 305 <tbody id="user-rows"> 306 <tr data-row-href="./admin-user-detail.html" data-search="alice alice alice@acme.test home realm user active"> 307 <td> 308 <span class="table-icon" aria-hidden="true"> 309 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 310 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 311 <circle cx="12" cy="7" r="4" /> 312 </svg> 313 </span> 314 </td> 315 <td> 316 <span class="table-title"><a class="link" href="./admin-user-detail.html">Alice</a></span> 317 <span class="table-sub">alice@acme.test</span> 318 <span class="table-sub">alice</span> 319 </td> 320 <td data-label="Membership">Home</td> 321 <td data-label="Roles">None</td> 322 <td data-label="Status">Active</td> 323 </tr> 324 <tr data-row-href="./admin-user-detail.html" data-search="acme it acme-it it@acme.test home realm-admin active"> 325 <td> 326 <span class="table-icon" aria-hidden="true"> 327 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 328 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 329 <circle cx="12" cy="7" r="4" /> 330 </svg> 331 </span> 332 </td> 333 <td> 334 <span class="table-title"><a class="link" href="./admin-user-detail.html">Acme IT</a></span> 335 <span class="table-sub">it@acme.test</span> 336 <span class="table-sub">acme-it</span> 337 </td> 338 <td data-label="Membership">Home</td> 339 <td data-label="Roles"><span class="status-muted">Realm admin</span></td> 340 <td data-label="Status">Active</td> 341 </tr> 342 <tr data-row-href="./admin-user-detail.html" data-search="guest user guest guest@personal.test guest active"> 343 <td> 344 <span class="table-icon" aria-hidden="true"> 345 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 346 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 347 <circle cx="12" cy="7" r="4" /> 348 </svg> 349 </span> 350 </td> 351 <td> 352 <span class="table-title"><a class="link" href="./admin-user-detail.html">Guest User</a></span> 353 <span class="table-sub">guest@personal.test</span> 354 <span class="table-sub">guest</span> 355 </td> 356 <td data-label="Membership">Guest</td> 357 <td data-label="Roles">None</td> 358 <td data-label="Status">Active</td> 359 </tr> 360 <tr data-row-href="./admin-user-detail.html" data-search="carol carol carol@example.test guest realm user active"> 361 <td> 362 <span class="table-icon" aria-hidden="true"> 363 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 364 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 365 <circle cx="12" cy="7" r="4" /> 366 </svg> 367 </span> 368 </td> 369 <td> 370 <span class="table-title"><a class="link" href="./admin-user-detail.html">Carol</a></span> 371 <span class="table-sub">carol@example.test</span> 372 <span class="table-sub">carol</span> 373 </td> 374 <td data-label="Membership">Guest</td> 375 <td data-label="Roles">None</td> 376 <td data-label="Status">Active</td> 377 </tr> 378 </tbody> 379 </table> 380 <p id="user-search-empty" class="empty" hidden>No users match this search.</p> 381 </section> 382 </main> 383 </div> 384 </div> 385 386 <div id="user-add-dialog" class="overlay" hidden> 387 <div class="modal" role="dialog" aria-modal="true" aria-labelledby="user-add-title"> 388 <div class="modal-header"> 389 <h2 id="user-add-title">Add user</h2> 390 <button class="modal-close" type="button" aria-label="Close dialog" data-dialog-close> 391 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 392 <path d="M18 6 6 18" /> 393 <path d="m6 6 12 12" /> 394 </svg> 395 </button> 396 </div> 397 <div class="modal-body"> 398 <label class="field"> 399 <span class="field-label">Email or username</span> 400 <input class="field-control" value="carol@example.test" /> 401 </label> 402 <div class="notice" role="status"> 403 <span class="table-title">Carol</span> 404 <span class="table-sub">carol@example.test</span> 405 <span class="table-sub">No membership in Acme</span> 406 </div> 407 <p class="modal-note"> 408 Exact email or username required. Adding Carol creates a guest membership without 409 roles. 410 </p> 411 <div class="modal-actions"> 412 <button class="button button-secondary" type="button" data-dialog-close>Cancel</button> 413 <button class="button button-primary" type="button" data-dialog-close>Add user</button> 414 </div> 415 </div> 416 </div> 417 </div> 418 419 <div class="mockup-controls" aria-label="Mockup theme"> 420 <span class="mockup-label">Mockup</span> 421 <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button> 422 <button class="mockup-button" type="button" data-theme-target="light">Light</button> 423 <button class="mockup-button" type="button" data-theme-target="dark">Dark</button> 424 </div> 425 426 <script> 427 const root = document.documentElement; 428 const themeButtons = document.querySelectorAll('[data-theme-target]'); 429 const userThemeButtons = document.querySelectorAll('[data-user-theme]'); 430 const userThemeValues = document.querySelectorAll('[data-user-theme-value]'); 431 let currentTheme = 'auto'; 432 433 function setTheme(value) { 434 currentTheme = value; 435 if (value === 'auto') { 436 root.removeAttribute('data-theme'); 437 } else { 438 root.setAttribute('data-theme', value); 439 } 440 themeButtons.forEach((button) => { 441 button.classList.toggle('is-active', button.dataset.themeTarget === value); 442 }); 443 userThemeValues.forEach((element) => { 444 element.textContent = value.charAt(0).toUpperCase() + value.slice(1); 445 }); 446 } 447 448 themeButtons.forEach((button) => { 449 button.addEventListener('click', () => setTheme(button.dataset.themeTarget)); 450 }); 451 452 userThemeButtons.forEach((button) => { 453 button.addEventListener('click', () => { 454 const themes = ['auto', 'light', 'dark']; 455 setTheme(themes[(themes.indexOf(currentTheme) + 1) % themes.length]); 456 }); 457 }); 458 459 const userMenu = document.querySelector('.user-menu'); 460 document.addEventListener('click', (event) => { 461 if (userMenu && userMenu.open && !userMenu.contains(event.target)) { 462 userMenu.open = false; 463 } 464 }); 465 466 const search = document.getElementById('user-search'); 467 const empty = document.getElementById('user-search-empty'); 468 search?.addEventListener('input', () => { 469 const term = search.value.trim().toLowerCase(); 470 let visible = 0; 471 document.querySelectorAll('#user-rows tr').forEach((row) => { 472 const match = !term || row.dataset.search.includes(term); 473 row.hidden = !match; 474 if (match) visible += 1; 475 }); 476 if (empty) empty.hidden = visible > 0; 477 }); 478 479 document.querySelectorAll('#user-rows tr[data-row-href]').forEach((row) => { 480 row.addEventListener('click', () => { 481 window.location.href = row.dataset.rowHref; 482 }); 483 }); 484 </script> 485 <script src="./shell.js"></script> 486 </body> 487 </html>