feat: limite de 20 registros e botao de limpar log (admin)

This commit is contained in:
Gustavo
2026-08-20 10:52:48 -03:00
parent 9fbc57b0ad
commit 4ec3c8df88
3 changed files with 103 additions and 9 deletions
+6
View File
@@ -5,6 +5,12 @@
<h1>Log</h1>
<h2>Ações no painel</h2>
{% if eh_admin %}
<form method="post" action="/log/limpar" style="margin-bottom:14px">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button type="submit" onclick="return confirm('Limpar todo o histórico de ações? Isso não pode ser desfeito.')">Limpar log</button>
</form>
{% endif %}
{% if acoes %}
<div class="tabela-wrap">
<table>