v0.5.129: кнопка Выбрать, убран весь debug
This commit is contained in:
+2
-19
@@ -129,24 +129,6 @@
|
||||
if(p.get('error')){document.write('<div class="alert alert-err">'+p.get('error')+'</div>');history.replaceState(null,'','/v2/app');}
|
||||
</script>
|
||||
|
||||
<div class="card" style="margin-bottom:1rem;border-style:dashed;">
|
||||
<div class="card-body" style="font-size:.85rem;color:var(--muted);">
|
||||
<div><strong>DEBUG</strong></div>
|
||||
<div>sessionID: <%= (typeof sessionId !== 'undefined' && sessionId) ? sessionId : 'n/a' %></div>
|
||||
<div>session.activeClientId: <%= (typeof sessionActiveClientId !== 'undefined' && sessionActiveClientId) ? sessionActiveClientId : 'n/a' %></div>
|
||||
<div>req.clientId: <%= (typeof debugClientId !== 'undefined' && debugClientId) ? debugClientId : activeClientId %></div>
|
||||
<div>req.session.user.clientId: <%= (typeof sessionClientId !== 'undefined' && sessionClientId) ? sessionClientId : 'n/a' %></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof switchDebug !== 'undefined' && switchDebug) { %>
|
||||
<div style="background:#fff3cd;border:2px solid #d97706;color:#92400e;padding:.5rem 1rem;border-radius:8px;margin-bottom:.5rem;font-size:.85rem;">
|
||||
<strong>DEBUG SWITCH:</strong> <%= switchDebug.from %> → <%= switchDebug.to %>
|
||||
| sessionID: <%= switchDebug.sessionID %>
|
||||
| activeClientId: <%= activeClientId %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (user.isImpersonated) { %>
|
||||
<div class="alert alert-warn">
|
||||
⚠️ Режим имперсонации — данные сохраняются от имени <strong><%= activeClientId %></strong>
|
||||
@@ -159,13 +141,14 @@
|
||||
<div class="card-body" style="padding:.75rem 1rem;">
|
||||
<form method="GET" action="/v2/app" style="display:flex;align-items:center;gap:1rem;flex-wrap:wrap;">
|
||||
<span style="font-size:.85rem;color:var(--muted);font-weight:500;">Компания:</span>
|
||||
<select name="switchTo" onchange="this.form.submit()">
|
||||
<select name="switchTo">
|
||||
<% companies.forEach(function(c) { %>
|
||||
<option value="<%= c.client_id %>" <%= c.client_id === activeClientId ? 'selected' : '' %>>
|
||||
<%= c.name %> (<%= c.client_id %>)<% if (c.isPersonal) { %> (личное)<% } %><% if (c.active_count != null) { %> — <%= c.active_count %> зап.<% } %>
|
||||
</option>
|
||||
<% }) %>
|
||||
</select>
|
||||
<button class="btn btn-sm btn-primary">Выбрать</button>
|
||||
<label style="font-size:.82rem;color:var(--muted);cursor:pointer;display:flex;align-items:center;gap:.3rem;">
|
||||
<input type="checkbox" name="deleted" value="1" <%= includeDeleted ? 'checked' : '' %> onchange="this.form.submit()">
|
||||
Показать удалённые
|
||||
|
||||
Reference in New Issue
Block a user