fix: audit table has impersonated_by column + filter uses button submit (no JS)
This commit is contained in:
+4
-1
@@ -91,7 +91,7 @@
|
||||
<div class="card-body">
|
||||
<form method="GET" action="/audit" class="filter-bar">
|
||||
<label style="font-size:.85rem;color:var(--muted);">Компания:</label>
|
||||
<select name="company" onchange="this.form.submit()">
|
||||
<select name="company" id="company-filter">
|
||||
<option value="">— Все компании —</option>
|
||||
<% companies.forEach(c => { %>
|
||||
<option value="<%= c.id %>" <%= Number(selectedCompanyId) === Number(c.id) ? 'selected' : '' %>>
|
||||
@@ -99,6 +99,7 @@
|
||||
</option>
|
||||
<% }) %>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-sm">Показать</button>
|
||||
<% if (selectedCompanyId) { %>
|
||||
<a href="/audit" class="btn btn-sm">Сбросить</a>
|
||||
<% } %>
|
||||
@@ -121,6 +122,7 @@
|
||||
<tr>
|
||||
<th>Когда</th>
|
||||
<th>Кто</th>
|
||||
<th>Имперсонировал</th>
|
||||
<th>Компания</th>
|
||||
<th>Действие</th>
|
||||
<th>Значение</th>
|
||||
@@ -137,6 +139,7 @@
|
||||
}) %>
|
||||
</td>
|
||||
<td><%= r.user_email %></td>
|
||||
<td style="color:var(--amber);"><%= r.impersonated_by || '—' %></td>
|
||||
<!-- Название компании из JOIN, client_id в скобках -->
|
||||
<td>
|
||||
<%= r.company_name %><br>
|
||||
|
||||
Reference in New Issue
Block a user