fix: return includeDeleted checkbox + submit button for admin filter (no JS)

This commit is contained in:
2026-06-11 21:07:59 +04:00
parent 5781b37882
commit a601570a4a
+3 -8
View File
@@ -205,7 +205,7 @@
<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;"> <form method="GET" action="/" 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="company" id="company-select" onchange="this.form.submit()" <select name="company" id="company-select"
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;">
<% companies.forEach(c => { %> <% companies.forEach(c => { %>
<option value="<%= c.id %>" <%= selectedCompany && c.id === selectedCompany.id ? 'selected' : '' %>> <option value="<%= c.id %>" <%= selectedCompany && c.id === selectedCompany.id ? 'selected' : '' %>>
@@ -213,14 +213,9 @@
</option> </option>
<% }) %> <% }) %>
</select> </select>
<!-- Быстрый доступ к admin-страницам прямо из главной --> <button type="submit" class="btn btn-sm">Показать</button>
<a href="/audit<%= selectedCompany ? '?company=' + selectedCompany.id : '' %>"
style="font-size:.82rem;color:var(--muted);text-decoration:none;">→ Аудит этой компании</a>
<a href="/admin"
style="font-size:.82rem;color:var(--muted);text-decoration:none;">→ Лимиты</a>
<label style="font-size:.82rem;color:var(--muted);cursor:pointer;display:flex;align-items:center;gap:.3rem;"> <label style="font-size:.82rem;color:var(--muted);cursor:pointer;display:flex;align-items:center;gap:.3rem;">
<input type="checkbox" name="includeDeleted" value="true" <%= (typeof includeDeleted !== 'undefined' && includeDeleted) ? 'checked' : '' %> <input type="checkbox" name="includeDeleted" value="true" <%= (typeof includeDeleted !== 'undefined' && includeDeleted) ? 'checked' : '' %>>
onchange="this.form.submit()">
Показать удалённые Показать удалённые
</label> </label>
<span style="margin-left:auto;font-size:.8rem;color:var(--muted);"> <span style="margin-left:auto;font-size:.8rem;color:var(--muted);">