v0.5.13: убраны футеры с версией (версия в шапке и title)
This commit is contained in:
+11
-4
@@ -215,9 +215,9 @@
|
||||
<% if (!isAdmin && allClientIds && allClientIds.length > 1) { %>
|
||||
<div class="card">
|
||||
<div class="card-body" style="padding:.75rem 1rem;">
|
||||
<form method="GET" action="/" style="display:flex;align-items:center;gap:1rem;flex-wrap:wrap;">
|
||||
<div 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 id="company-switch"
|
||||
style="padding:.4rem .75rem;border:1px solid var(--border);border-radius:6px;font-size:.85rem;background:#fff;">
|
||||
<% allClientIds.forEach(id => { %>
|
||||
<option value="<%= id %>" <%= id === activeClientId ? 'selected' : '' %>>
|
||||
@@ -228,7 +228,7 @@
|
||||
<span style="margin-left:auto;font-size:.8rem;color:var(--muted);">
|
||||
Компаний: <strong><%= allClientIds.length %></strong>
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -540,9 +540,16 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// ── Переключатель компании ─────────────────────────────
|
||||
var companySwitch = document.getElementById('company-switch');
|
||||
if (companySwitch) {
|
||||
companySwitch.addEventListener('change', function() {
|
||||
window.location.href = '/?switchTo=' + encodeURIComponent(this.value);
|
||||
});
|
||||
}
|
||||
}());
|
||||
</script>
|
||||
|
||||
<footer style="text-align:right;padding:.5rem 1.5rem;font-size:.72rem;color:var(--muted);">v<%= appVersion %></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user