Client Application Management
<% if (message && message.text) { %>
<%= message.text %>
<% } %>
<% if (!managingClientGroups) { %>
WebSocket Settings (Debug)
<% } %>
<% if (managingClientGroups) { %>
Manage Associated Groups for Client: <%= managingClientGroups.client.name %> (<%= managingClientGroups.client.id %>)
<% } else { %>
Pending Client Registrations
<% if (pendingClients && pendingClients.length > 0) { %>
| Name |
Client ID / Temp ID |
Requested Secrets (Legacy) |
Date Registered |
Actions |
<% pendingClients.forEach(client => { %>
| <%= client.name %> |
<%= client.id %> |
<%= client.requestedSecretKeys && client.requestedSecretKeys.length > 0 ? client.requestedSecretKeys.join(', ') : 'None' %> |
<%= new Date(client.dateCreated).toLocaleString() %> |
|
<% }); %>
<% } else { %>
No pending client registrations.
<% } %>
Approved Clients
<% if (approvedClients && approvedClients.length > 0) { %>
| Name |
Client ID |
Associated Groups |
Date Approved/Updated |
Actions |
<% approvedClients.forEach(client => { %>
| <%= client.name %> |
<%= client.id %> |
<%= client.associatedGroupNames %> | <%# Now using associatedGroupNames from server %>
<%= new Date(client.dateUpdated).toLocaleString() %> |
Manage Groups
|
<% }); %>
<% } else { %>
No approved clients.
<% } %>
<% } %>
<%# The script for auto-approve toggle has been removed as it's now a form submission %>
<%# The csrfToken is still available globally in the template if other scripts need it, %>
<%# passed directly from the route handler. %>