v0.5.13: убраны футеры с версией (версия в шапке и title)

This commit is contained in:
2026-06-03 06:06:53 +03:00
parent 3dc5dc4ecc
commit 9344eb57fb
2 changed files with 12 additions and 7 deletions
+11 -4
View File
@@ -215,9 +215,9 @@
<% if (!isAdmin && allClientIds && allClientIds.length > 1) { %> <% if (!isAdmin && allClientIds && allClientIds.length > 1) { %>
<div class="card"> <div class="card">
<div class="card-body" style="padding:.75rem 1rem;"> <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> <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;"> style="padding:.4rem .75rem;border:1px solid var(--border);border-radius:6px;font-size:.85rem;background:#fff;">
<% allClientIds.forEach(id => { %> <% allClientIds.forEach(id => { %>
<option value="<%= id %>" <%= id === activeClientId ? 'selected' : '' %>> <option value="<%= id %>" <%= id === activeClientId ? 'selected' : '' %>>
@@ -228,7 +228,7 @@
<span style="margin-left:auto;font-size:.8rem;color:var(--muted);"> <span style="margin-left:auto;font-size:.8rem;color:var(--muted);">
Компаний: <strong><%= allClientIds.length %></strong> Компаний: <strong><%= allClientIds.length %></strong>
</span> </span>
</form> </div>
</div> </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> </script>
<footer style="text-align:right;padding:.5rem 1.5rem;font-size:.72rem;color:var(--muted);">v<%= appVersion %></footer>
</body> </body>
</html> </html>
+1 -3
View File
@@ -96,8 +96,6 @@
</form> </form>
</div> </div>
<footer style="position:fixed;bottom:.75rem;right:1.5rem;font-size:.72rem;color:var(--muted);"> </div>
v<%= appVersion %>
</footer>
</body> </body>
</html> </html>